naftiko: 1.0.0-alpha2 info: label: TrueFoundry AI Gateway API — Batches description: 'TrueFoundry AI Gateway API — Batches. 2 operations. Lead operation: Create Batch. Self-contained Naftiko capability covering one Truefoundry business surface.' tags: - Truefoundry - Batches created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: TRUEFOUNDRY_API_KEY: TRUEFOUNDRY_API_KEY capability: consumes: - type: http namespace: ai-gateway-batches baseUri: https://app.truefoundry.com/api/llm description: TrueFoundry AI Gateway API — Batches business capability. Self-contained, no shared references. resources: - name: batches path: /batches operations: - name: createbatch method: POST description: Create Batch outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: batches-batch_id path: /batches/{batch_id} operations: - name: getbatch method: GET description: Get Batch outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: batch_id in: path type: string required: true authentication: type: bearer token: '{{env.TRUEFOUNDRY_API_KEY}}' exposes: - type: rest namespace: ai-gateway-batches-rest port: 8080 description: REST adapter for TrueFoundry AI Gateway API — Batches. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/batches name: batches description: REST surface for batches. operations: - method: POST name: createbatch description: Create Batch call: ai-gateway-batches.createbatch with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/batches/{batch-id} name: batches-batch-id description: REST surface for batches-batch_id. operations: - method: GET name: getbatch description: Get Batch call: ai-gateway-batches.getbatch with: batch_id: rest.batch_id outputParameters: - type: object mapping: $. - type: mcp namespace: ai-gateway-batches-mcp port: 9090 transport: http description: MCP adapter for TrueFoundry AI Gateway API — Batches. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: create-batch description: Create Batch hints: readOnly: false destructive: false idempotent: false call: ai-gateway-batches.createbatch with: body: tools.body outputParameters: - type: object mapping: $. - name: get-batch description: Get Batch hints: readOnly: true destructive: false idempotent: true call: ai-gateway-batches.getbatch with: batch_id: tools.batch_id outputParameters: - type: object mapping: $.