Uniswap · Capability

Token Trading

Token Trading. 1 operations. Lead operation: Update an existing plan with step proofs. Self-contained Naftiko capability covering one Uniswap business surface.

Run with Naftiko Uniswap

What You Can Do

PATCH
Updateplan — Update an existing plan with step proofs
/v1/plan/{planid}

MCP Tools

update-existing-plan-step-proofs

Update an existing plan with step proofs

idempotent

Capability Spec

trading-general.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Token Trading
  description: 'Token Trading. 1 operations. Lead operation: Update an existing plan with step proofs. Self-contained Naftiko
    capability covering one Uniswap business surface.'
  tags:
  - Uniswap
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    UNISWAP_API_KEY: UNISWAP_API_KEY
capability:
  consumes:
  - type: http
    namespace: trading-general
    baseUri: https://trade-api.gateway.uniswap.org/v1
    description: Token Trading business capability. Self-contained, no shared references.
    resources:
    - name: plan-planId
      path: /plan/{planId}
      operations:
      - name: updateplan
        method: PATCH
        description: Update an existing plan with step proofs
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: planId
          in: path
          type: string
          description: The unique identifier of the plan to update.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    authentication:
      type: apikey
      key: x-api-key
      value: '{{env.UNISWAP_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: trading-general-rest
    port: 8080
    description: REST adapter for Token Trading. One Spectral-compliant resource per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/plan/{planid}
      name: plan-planid
      description: REST surface for plan-planId.
      operations:
      - method: PATCH
        name: updateplan
        description: Update an existing plan with step proofs
        call: trading-general.updateplan
        with:
          planId: rest.planId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: trading-general-mcp
    port: 9090
    transport: http
    description: MCP adapter for Token Trading. One tool per consumed operation, routed inline through this capability's consumes
      block.
    tools:
    - name: update-existing-plan-step-proofs
      description: Update an existing plan with step proofs
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: trading-general.updateplan
      with:
        planId: tools.planId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.