Uniswap · Capability

Token Trading — Approval

Token Trading — Approval. 1 operations. Lead operation: Check if token approval is required. Self-contained Naftiko capability covering one Uniswap business surface.

Run with Naftiko UniswapApproval

What You Can Do

POST
Checkapproval — Check if token approval is required
/v1/check-approval

MCP Tools

check-if-token-approval-is

Check if token approval is required

read-only

Capability Spec

trading-approval.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Token Trading — Approval
  description: 'Token Trading — Approval. 1 operations. Lead operation: Check if token approval is required. Self-contained
    Naftiko capability covering one Uniswap business surface.'
  tags:
  - Uniswap
  - Approval
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    UNISWAP_API_KEY: UNISWAP_API_KEY
capability:
  consumes:
  - type: http
    namespace: trading-approval
    baseUri: https://trade-api.gateway.uniswap.org/v1
    description: Token Trading — Approval business capability. Self-contained, no shared references.
    resources:
    - name: check_approval
      path: /check_approval
      operations:
      - name: checkapproval
        method: POST
        description: Check if token approval is required
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - 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-approval-rest
    port: 8080
    description: REST adapter for Token Trading — Approval. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/check-approval
      name: check-approval
      description: REST surface for check_approval.
      operations:
      - method: POST
        name: checkapproval
        description: Check if token approval is required
        call: trading-approval.checkapproval
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: trading-approval-mcp
    port: 9090
    transport: http
    description: MCP adapter for Token Trading — Approval. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: check-if-token-approval-is
      description: Check if token approval is required
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: trading-approval.checkapproval
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.