TD Ameritrade Holding · Capability

TD Ameritrade Accounts and Trading API — Instruments

TD Ameritrade Accounts and Trading API — Instruments. 2 operations. Lead operation: Search Instruments. Self-contained Naftiko capability covering one Td Ameritrade Holding business surface.

Run with Naftiko Td Ameritrade HoldingInstruments

What You Can Do

GET
Searchinstruments — Search Instruments
/v1/instruments
GET
Getinstrument — Get Instrument
/v1/instruments/{cusip}

MCP Tools

search-instruments

Search Instruments

read-only idempotent
get-instrument

Get Instrument

read-only idempotent

Capability Spec

td-ameritrade-accounts-trading-instruments.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: TD Ameritrade Accounts and Trading API — Instruments
  description: 'TD Ameritrade Accounts and Trading API — Instruments. 2 operations. Lead operation: Search Instruments. Self-contained
    Naftiko capability covering one Td Ameritrade Holding business surface.'
  tags:
  - Td Ameritrade Holding
  - Instruments
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    TD_AMERITRADE_HOLDING_API_KEY: TD_AMERITRADE_HOLDING_API_KEY
capability:
  consumes:
  - type: http
    namespace: td-ameritrade-accounts-trading-instruments
    baseUri: https://api.tdameritrade.com/v1
    description: TD Ameritrade Accounts and Trading API — Instruments business capability. Self-contained, no shared references.
    resources:
    - name: instruments
      path: /instruments
      operations:
      - name: searchinstruments
        method: GET
        description: Search Instruments
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: symbol
          in: query
          type: string
          description: Value to pass for the symbol (supports regex for FUNDAMENTAL projection)
          required: true
        - name: projection
          in: query
          type: string
          description: Type of search (symbol-search, symbol-regex, desc-search, desc-regex, fundamental)
          required: true
    - name: instruments-cusip
      path: /instruments/{cusip}
      operations:
      - name: getinstrument
        method: GET
        description: Get Instrument
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: cusip
          in: path
          type: string
          description: CUSIP identifier for the instrument
          required: true
    authentication:
      type: bearer
      token: '{{env.TD_AMERITRADE_HOLDING_API_KEY}}'
  exposes:
  - type: rest
    namespace: td-ameritrade-accounts-trading-instruments-rest
    port: 8080
    description: REST adapter for TD Ameritrade Accounts and Trading API — Instruments. One Spectral-compliant resource per
      consumed operation, prefixed with /v1.
    resources:
    - path: /v1/instruments
      name: instruments
      description: REST surface for instruments.
      operations:
      - method: GET
        name: searchinstruments
        description: Search Instruments
        call: td-ameritrade-accounts-trading-instruments.searchinstruments
        with:
          symbol: rest.symbol
          projection: rest.projection
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/instruments/{cusip}
      name: instruments-cusip
      description: REST surface for instruments-cusip.
      operations:
      - method: GET
        name: getinstrument
        description: Get Instrument
        call: td-ameritrade-accounts-trading-instruments.getinstrument
        with:
          cusip: rest.cusip
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: td-ameritrade-accounts-trading-instruments-mcp
    port: 9090
    transport: http
    description: MCP adapter for TD Ameritrade Accounts and Trading API — Instruments. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: search-instruments
      description: Search Instruments
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: td-ameritrade-accounts-trading-instruments.searchinstruments
      with:
        symbol: tools.symbol
        projection: tools.projection
      outputParameters:
      - type: object
        mapping: $.
    - name: get-instrument
      description: Get Instrument
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: td-ameritrade-accounts-trading-instruments.getinstrument
      with:
        cusip: tools.cusip
      outputParameters:
      - type: object
        mapping: $.