EvolutionaryScale · Capability

EvolutionaryScale Forge ESM3 — Encoding

EvolutionaryScale Forge ESM3 encoding capability. 4 operations: encode, decode, forward_and_sample, logits. Provides low-level tokenization and sampling control for ESM3.

EvolutionaryScale Forge ESM3 — Encoding is a Naftiko capability published by EvolutionaryScale, one of 4 capabilities the APIs.io network indexes for this provider. It bundles 4 operations across the POST method.

The capability includes 3 read-only operations and 1 state-changing operation. Lead operation: Tokenize an ESMProtein into an ESMProteinTensor. Can be deployed as a REST endpoint, MCP tool, or Agent Skill via Naftiko.

Tagged areas include EvolutionaryScale, ESM3, Encoding, Tokenization, and Logits.

Run with Naftiko EvolutionaryScaleESM3EncodingTokenizationLogits

What You Can Do

POST
Encode
/api/v1/encode
POST
Decode
/api/v1/decode
POST
Forwardandsample
/api/v1/forward_and_sample
POST
Logits
/api/v1/logits

MCP Tools

evolutionaryscale-forge-encode

Tokenize an ESMProtein into an ESMProteinTensor.

read-only idempotent
evolutionaryscale-forge-decode

Decode an ESMProteinTensor back into an ESMProtein.

read-only idempotent
evolutionaryscale-forge-forward-and-sample

Single forward pass with sampling control.

evolutionaryscale-forge-logits

Retrieve raw logits, embeddings, and hidden states for a tokenized protein.

read-only idempotent

Capability Spec

forge-esm3-encoding.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: EvolutionaryScale Forge ESM3 — Encoding
  description: 'EvolutionaryScale Forge ESM3 encoding capability. 4 operations: encode, decode,
    forward_and_sample, logits. Provides low-level tokenization and sampling control for ESM3.'
  tags:
  - EvolutionaryScale
  - ESM3
  - Encoding
  - Tokenization
  - Logits
  created: '2026-05-24'
  modified: '2026-05-24'
binds:
- namespace: env
  keys:
    FORGE_API_TOKEN: FORGE_API_TOKEN
capability:
  consumes:
  - type: http
    namespace: forge-esm3-encoding
    baseUri: https://forge.evolutionaryscale.ai
    description: EvolutionaryScale Forge ESM3 encode / decode / forward_and_sample / logits endpoints.
    resources:
    - name: api-v1-encode
      path: /api/v1/encode
      operations:
      - name: encode
        method: POST
        description: Encode Protein To Tensor
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          required: true
    - name: api-v1-decode
      path: /api/v1/decode
      operations:
      - name: decode
        method: POST
        description: Decode Protein Tensor
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          required: true
    - name: api-v1-forward-and-sample
      path: /api/v1/forward_and_sample
      operations:
      - name: forwardandsample
        method: POST
        description: Forward And Sample
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          required: true
    - name: api-v1-logits
      path: /api/v1/logits
      operations:
      - name: logits
        method: POST
        description: Get Logits And Embeddings
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          required: true
    authentication:
      type: bearer
      value: '{{env.FORGE_API_TOKEN}}'
      placement: header
  exposes:
  - type: rest
    namespace: forge-esm3-encoding-rest
    port: 8080
    description: REST adapter for ESM3 encoding and sampling endpoints.
    resources:
    - path: /api/v1/encode
      name: api-v1-encode
      operations:
      - method: POST
        name: encode
        call: forge-esm3-encoding.encode
        with:
          body: rest.body
    - path: /api/v1/decode
      name: api-v1-decode
      operations:
      - method: POST
        name: decode
        call: forge-esm3-encoding.decode
        with:
          body: rest.body
    - path: /api/v1/forward_and_sample
      name: api-v1-forward-and-sample
      operations:
      - method: POST
        name: forwardandsample
        call: forge-esm3-encoding.forwardandsample
        with:
          body: rest.body
    - path: /api/v1/logits
      name: api-v1-logits
      operations:
      - method: POST
        name: logits
        call: forge-esm3-encoding.logits
        with:
          body: rest.body
  - type: mcp
    namespace: forge-esm3-encoding-mcp
    port: 9090
    transport: http
    description: MCP adapter for ESM3 encoding and sampling.
    tools:
    - name: evolutionaryscale-forge-encode
      description: Tokenize an ESMProtein into an ESMProteinTensor.
      hints: { readOnly: true, destructive: false, idempotent: true }
      call: forge-esm3-encoding.encode
      with:
        body: tools.body
    - name: evolutionaryscale-forge-decode
      description: Decode an ESMProteinTensor back into an ESMProtein.
      hints: { readOnly: true, destructive: false, idempotent: true }
      call: forge-esm3-encoding.decode
      with:
        body: tools.body
    - name: evolutionaryscale-forge-forward-and-sample
      description: Single forward pass with sampling control.
      hints: { readOnly: false, destructive: false, idempotent: false }
      call: forge-esm3-encoding.forwardandsample
      with:
        body: tools.body
    - name: evolutionaryscale-forge-logits
      description: Retrieve raw logits, embeddings, and hidden states for a tokenized protein.
      hints: { readOnly: true, destructive: false, idempotent: true }
      call: forge-esm3-encoding.logits
      with:
        body: tools.body