naftiko: 1.0.0-alpha2 info: label: Trigger.dev Management API — Batches description: 'Trigger.dev Management API — Batches. 2 operations. Lead operation: Create Batch. Self-contained Naftiko capability covering one Trigger Dev business surface.' tags: - Trigger Dev - Batches created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: TRIGGER_DEV_API_KEY: TRIGGER_DEV_API_KEY capability: consumes: - type: http namespace: management-batches baseUri: https://api.trigger.dev description: Trigger.dev Management API — Batches business capability. Self-contained, no shared references. resources: - name: api-v1-batches path: /api/v1/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: api-v1-batches-batchId path: /api/v1/batches/{batchId} operations: - name: getbatchbyid method: GET description: Retrieve Batch outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: batchId in: path type: string description: Batch identifier required: true authentication: type: bearer token: '{{env.TRIGGER_DEV_API_KEY}}' exposes: - type: rest namespace: management-batches-rest port: 8080 description: REST adapter for Trigger.dev Management API — Batches. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/v1/batches name: api-v1-batches description: REST surface for api-v1-batches. operations: - method: POST name: createbatch description: Create Batch call: management-batches.createbatch with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/v1/batches/{batchid} name: api-v1-batches-batchid description: REST surface for api-v1-batches-batchId. operations: - method: GET name: getbatchbyid description: Retrieve Batch call: management-batches.getbatchbyid with: batchId: rest.batchId outputParameters: - type: object mapping: $. - type: mcp namespace: management-batches-mcp port: 9090 transport: http description: MCP adapter for Trigger.dev Management 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: management-batches.createbatch with: body: tools.body outputParameters: - type: object mapping: $. - name: retrieve-batch description: Retrieve Batch hints: readOnly: true destructive: false idempotent: true call: management-batches.getbatchbyid with: batchId: tools.batchId outputParameters: - type: object mapping: $.