naftiko: 1.0.0-alpha2 info: label: Anthropic Message Batches API — Message Batches description: 'Anthropic Message Batches API — Message Batches. 6 operations. Lead operation: Anthropic List Message Batches. Self-contained Naftiko capability covering one Anthropic business surface.' tags: - Anthropic - Message Batches created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: ANTHROPIC_API_KEY: ANTHROPIC_API_KEY capability: consumes: - type: http namespace: message-batches-message-batches baseUri: https://api.anthropic.com/v1 description: Anthropic Message Batches API — Message Batches business capability. Self-contained, no shared references. resources: - name: messages-batches path: /messages/batches operations: - name: listmessagebatches method: GET description: Anthropic List Message Batches outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createmessagebatch method: POST description: Anthropic Create Message Batch outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: messages-batches-message_batch_id path: /messages/batches/{message_batch_id} operations: - name: retrievemessagebatch method: GET description: Anthropic Retrieve Message Batch outputRawFormat: json outputParameters: - name: result type: object value: $. - name: deletemessagebatch method: DELETE description: Anthropic Delete Message Batch outputRawFormat: json outputParameters: - name: result type: object value: $. - name: messages-batches-message_batch_id-cancel path: /messages/batches/{message_batch_id}/cancel operations: - name: cancelmessagebatch method: POST description: Anthropic Cancel Message Batch outputRawFormat: json outputParameters: - name: result type: object value: $. - name: messages-batches-message_batch_id-results path: /messages/batches/{message_batch_id}/results operations: - name: retrievemessagebatchresults method: GET description: Anthropic Retrieve Message Batch Results outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: apikey key: x-api-key value: '{{env.ANTHROPIC_API_KEY}}' placement: header exposes: - type: rest namespace: message-batches-message-batches-rest port: 8080 description: REST adapter for Anthropic Message Batches API — Message Batches. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/messages/batches name: messages-batches description: REST surface for messages-batches. operations: - method: GET name: listmessagebatches description: Anthropic List Message Batches call: message-batches-message-batches.listmessagebatches outputParameters: - type: object mapping: $. - method: POST name: createmessagebatch description: Anthropic Create Message Batch call: message-batches-message-batches.createmessagebatch with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/messages/batches/{message-batch-id} name: messages-batches-message-batch-id description: REST surface for messages-batches-message_batch_id. operations: - method: GET name: retrievemessagebatch description: Anthropic Retrieve Message Batch call: message-batches-message-batches.retrievemessagebatch outputParameters: - type: object mapping: $. - method: DELETE name: deletemessagebatch description: Anthropic Delete Message Batch call: message-batches-message-batches.deletemessagebatch outputParameters: - type: object mapping: $. - path: /v1/messages/batches/{message-batch-id}/cancel name: messages-batches-message-batch-id-cancel description: REST surface for messages-batches-message_batch_id-cancel. operations: - method: POST name: cancelmessagebatch description: Anthropic Cancel Message Batch call: message-batches-message-batches.cancelmessagebatch outputParameters: - type: object mapping: $. - path: /v1/messages/batches/{message-batch-id}/results name: messages-batches-message-batch-id-results description: REST surface for messages-batches-message_batch_id-results. operations: - method: GET name: retrievemessagebatchresults description: Anthropic Retrieve Message Batch Results call: message-batches-message-batches.retrievemessagebatchresults outputParameters: - type: object mapping: $. - type: mcp namespace: message-batches-message-batches-mcp port: 9090 transport: http description: MCP adapter for Anthropic Message Batches API — Message Batches. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: anthropic-list-message-batches description: Anthropic List Message Batches hints: readOnly: true destructive: false idempotent: true call: message-batches-message-batches.listmessagebatches outputParameters: - type: object mapping: $. - name: anthropic-create-message-batch description: Anthropic Create Message Batch hints: readOnly: false destructive: false idempotent: false call: message-batches-message-batches.createmessagebatch with: body: tools.body outputParameters: - type: object mapping: $. - name: anthropic-retrieve-message-batch description: Anthropic Retrieve Message Batch hints: readOnly: true destructive: false idempotent: true call: message-batches-message-batches.retrievemessagebatch outputParameters: - type: object mapping: $. - name: anthropic-delete-message-batch description: Anthropic Delete Message Batch hints: readOnly: false destructive: true idempotent: true call: message-batches-message-batches.deletemessagebatch outputParameters: - type: object mapping: $. - name: anthropic-cancel-message-batch description: Anthropic Cancel Message Batch hints: readOnly: false destructive: false idempotent: false call: message-batches-message-batches.cancelmessagebatch outputParameters: - type: object mapping: $. - name: anthropic-retrieve-message-batch-results description: Anthropic Retrieve Message Batch Results hints: readOnly: true destructive: false idempotent: true call: message-batches-message-batches.retrievemessagebatchresults outputParameters: - type: object mapping: $.