naftiko: 1.0.0-alpha2 info: label: Tratta API — Transactions description: 'Tratta API — Transactions. 2 operations. Lead operation: List Transactions. Self-contained Naftiko capability covering one Tratta business surface.' tags: - Tratta - Transactions created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: TRATTA_API_KEY: TRATTA_API_KEY capability: consumes: - type: http namespace: tratta-transactions baseUri: https://{org-uuid}.production.tratta.io/api/v1 description: Tratta API — Transactions business capability. Self-contained, no shared references. resources: - name: transactions path: /transactions operations: - name: listtransactions method: GET description: List Transactions outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: start_date in: query type: string description: Filter transactions from this date - name: end_date in: query type: string description: Filter transactions to this date - name: transactions-id path: /transactions/{id} operations: - name: gettransaction method: GET description: Get Transaction outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.TRATTA_API_KEY}}' exposes: - type: rest namespace: tratta-transactions-rest port: 8080 description: REST adapter for Tratta API — Transactions. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/transactions name: transactions description: REST surface for transactions. operations: - method: GET name: listtransactions description: List Transactions call: tratta-transactions.listtransactions with: start_date: rest.start_date end_date: rest.end_date outputParameters: - type: object mapping: $. - path: /v1/transactions/{id} name: transactions-id description: REST surface for transactions-id. operations: - method: GET name: gettransaction description: Get Transaction call: tratta-transactions.gettransaction outputParameters: - type: object mapping: $. - type: mcp namespace: tratta-transactions-mcp port: 9090 transport: http description: MCP adapter for Tratta API — Transactions. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-transactions description: List Transactions hints: readOnly: true destructive: false idempotent: true call: tratta-transactions.listtransactions with: start_date: tools.start_date end_date: tools.end_date outputParameters: - type: object mapping: $. - name: get-transaction description: Get Transaction hints: readOnly: true destructive: false idempotent: true call: tratta-transactions.gettransaction outputParameters: - type: object mapping: $.