naftiko: 1.0.0-alpha2 info: label: Adyen Transfers API — Grants description: 'Adyen Transfers API — Grants. 3 operations. Lead operation: Adyen Get a Capital Account. Self-contained Naftiko capability covering one Adyen business surface.' tags: - Adyen - Grants created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: ADYEN_API_KEY: ADYEN_API_KEY capability: consumes: - type: http namespace: transfers-grants baseUri: https://balanceplatform-api-test.adyen.com/btl/v4 description: Adyen Transfers API — Grants business capability. Self-contained, no shared references. resources: - name: grants path: /grants operations: - name: getgrants method: GET description: Adyen Get a Capital Account outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: counterpartyAccountHolderId in: query type: string description: The counterparty account holder id. - name: postgrants method: POST description: Adyen Request a Grant Payout outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: grants-id path: /grants/{id} operations: - name: getgrantsid method: GET description: Adyen Get Grant Reference Details outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: The unique identifier of the grant. required: true authentication: type: apikey key: X-API-Key value: '{{env.ADYEN_API_KEY}}' placement: header exposes: - type: rest namespace: transfers-grants-rest port: 8080 description: REST adapter for Adyen Transfers API — Grants. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/grants name: grants description: REST surface for grants. operations: - method: GET name: getgrants description: Adyen Get a Capital Account call: transfers-grants.getgrants with: counterpartyAccountHolderId: rest.counterpartyAccountHolderId outputParameters: - type: object mapping: $. - method: POST name: postgrants description: Adyen Request a Grant Payout call: transfers-grants.postgrants with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/grants/{id} name: grants-id description: REST surface for grants-id. operations: - method: GET name: getgrantsid description: Adyen Get Grant Reference Details call: transfers-grants.getgrantsid with: id: rest.id outputParameters: - type: object mapping: $. - type: mcp namespace: transfers-grants-mcp port: 9090 transport: http description: MCP adapter for Adyen Transfers API — Grants. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: adyen-get-capital-account description: Adyen Get a Capital Account hints: readOnly: true destructive: false idempotent: true call: transfers-grants.getgrants with: counterpartyAccountHolderId: tools.counterpartyAccountHolderId outputParameters: - type: object mapping: $. - name: adyen-request-grant-payout description: Adyen Request a Grant Payout hints: readOnly: false destructive: false idempotent: false call: transfers-grants.postgrants with: body: tools.body outputParameters: - type: object mapping: $. - name: adyen-get-grant-reference-details description: Adyen Get Grant Reference Details hints: readOnly: true destructive: false idempotent: true call: transfers-grants.getgrantsid with: id: tools.id outputParameters: - type: object mapping: $.