naftiko: 1.0.0-alpha2 info: label: TD Ameritrade Accounts and Trading API — Saved Orders description: 'TD Ameritrade Accounts and Trading API — Saved Orders. 5 operations. Lead operation: Get Saved Orders. Self-contained Naftiko capability covering one Td Ameritrade Holding business surface.' tags: - Td Ameritrade Holding - Saved Orders 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-saved-orders baseUri: https://api.tdameritrade.com/v1 description: TD Ameritrade Accounts and Trading API — Saved Orders business capability. Self-contained, no shared references. resources: - name: accounts-accountId-savedorders path: /accounts/{accountId}/savedorders operations: - name: getsavedordersbypath method: GET description: Get Saved Orders outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createsavedorder method: POST description: Create Saved Order outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: accounts-accountId-savedorders-savedOrderId path: /accounts/{accountId}/savedorders/{savedOrderId} operations: - name: getsavedorder method: GET description: Get Saved Order outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: savedOrderId in: path type: string description: Unique identifier of the saved order required: true - name: replacesavedorder method: PUT description: Replace Saved Order outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: savedOrderId in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: true - name: deletesavedorder method: DELETE description: Delete Saved Order outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: savedOrderId in: path type: string required: true authentication: type: bearer token: '{{env.TD_AMERITRADE_HOLDING_API_KEY}}' exposes: - type: rest namespace: td-ameritrade-accounts-trading-saved-orders-rest port: 8080 description: REST adapter for TD Ameritrade Accounts and Trading API — Saved Orders. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/accounts/{accountid}/savedorders name: accounts-accountid-savedorders description: REST surface for accounts-accountId-savedorders. operations: - method: GET name: getsavedordersbypath description: Get Saved Orders call: td-ameritrade-accounts-trading-saved-orders.getsavedordersbypath outputParameters: - type: object mapping: $. - method: POST name: createsavedorder description: Create Saved Order call: td-ameritrade-accounts-trading-saved-orders.createsavedorder with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/accounts/{accountid}/savedorders/{savedorderid} name: accounts-accountid-savedorders-savedorderid description: REST surface for accounts-accountId-savedorders-savedOrderId. operations: - method: GET name: getsavedorder description: Get Saved Order call: td-ameritrade-accounts-trading-saved-orders.getsavedorder with: savedOrderId: rest.savedOrderId outputParameters: - type: object mapping: $. - method: PUT name: replacesavedorder description: Replace Saved Order call: td-ameritrade-accounts-trading-saved-orders.replacesavedorder with: savedOrderId: rest.savedOrderId body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletesavedorder description: Delete Saved Order call: td-ameritrade-accounts-trading-saved-orders.deletesavedorder with: savedOrderId: rest.savedOrderId outputParameters: - type: object mapping: $. - type: mcp namespace: td-ameritrade-accounts-trading-saved-orders-mcp port: 9090 transport: http description: MCP adapter for TD Ameritrade Accounts and Trading API — Saved Orders. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-saved-orders description: Get Saved Orders hints: readOnly: true destructive: false idempotent: true call: td-ameritrade-accounts-trading-saved-orders.getsavedordersbypath outputParameters: - type: object mapping: $. - name: create-saved-order description: Create Saved Order hints: readOnly: false destructive: false idempotent: false call: td-ameritrade-accounts-trading-saved-orders.createsavedorder with: body: tools.body outputParameters: - type: object mapping: $. - name: get-saved-order description: Get Saved Order hints: readOnly: true destructive: false idempotent: true call: td-ameritrade-accounts-trading-saved-orders.getsavedorder with: savedOrderId: tools.savedOrderId outputParameters: - type: object mapping: $. - name: replace-saved-order description: Replace Saved Order hints: readOnly: false destructive: false idempotent: true call: td-ameritrade-accounts-trading-saved-orders.replacesavedorder with: savedOrderId: tools.savedOrderId body: tools.body outputParameters: - type: object mapping: $. - name: delete-saved-order description: Delete Saved Order hints: readOnly: false destructive: true idempotent: true call: td-ameritrade-accounts-trading-saved-orders.deletesavedorder with: savedOrderId: tools.savedOrderId outputParameters: - type: object mapping: $.