naftiko: 1.0.0-alpha2 info: label: Montran Global Payments Hub API — Clearing description: 'Montran Global Payments Hub API — Clearing. 2 operations. Lead operation: Montran List clearing batches. Self-contained Naftiko capability covering one Montran business surface.' tags: - Montran - Clearing created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MONTRAN_API_KEY: MONTRAN_API_KEY capability: consumes: - type: http namespace: global-payments-hub-clearing baseUri: https://api.montran.com/gph/v1 description: Montran Global Payments Hub API — Clearing business capability. Self-contained, no shared references. resources: - name: clearing-batches path: /clearing/batches operations: - name: listclearingbatches method: GET description: Montran List clearing batches outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: direction in: query type: string description: Filter by clearing direction - name: clearing-batches-batchId path: /clearing/batches/{batchId} operations: - name: getclearingbatch method: GET description: Montran Get clearing batch details outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: batchId in: path type: string description: Unique identifier of the clearing batch required: true authentication: type: bearer token: '{{env.MONTRAN_API_KEY}}' exposes: - type: rest namespace: global-payments-hub-clearing-rest port: 8080 description: REST adapter for Montran Global Payments Hub API — Clearing. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/clearing/batches name: clearing-batches description: REST surface for clearing-batches. operations: - method: GET name: listclearingbatches description: Montran List clearing batches call: global-payments-hub-clearing.listclearingbatches with: direction: rest.direction outputParameters: - type: object mapping: $. - path: /v1/clearing/batches/{batchid} name: clearing-batches-batchid description: REST surface for clearing-batches-batchId. operations: - method: GET name: getclearingbatch description: Montran Get clearing batch details call: global-payments-hub-clearing.getclearingbatch with: batchId: rest.batchId outputParameters: - type: object mapping: $. - type: mcp namespace: global-payments-hub-clearing-mcp port: 9090 transport: http description: MCP adapter for Montran Global Payments Hub API — Clearing. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: montran-list-clearing-batches description: Montran List clearing batches hints: readOnly: true destructive: false idempotent: true call: global-payments-hub-clearing.listclearingbatches with: direction: tools.direction outputParameters: - type: object mapping: $. - name: montran-get-clearing-batch-details description: Montran Get clearing batch details hints: readOnly: true destructive: false idempotent: true call: global-payments-hub-clearing.getclearingbatch with: batchId: tools.batchId outputParameters: - type: object mapping: $.