get_batch
Check batch job status and progress for email operations by providing a batch ID.
Instructions
Get batch job status and progress
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Batch ID |
Implementation Reference
- src/index.ts:479-484 (handler)Handler for get_batch tool: fetches batch job status from the GetMailer API using the provided batch ID and returns the JSON result as text content.case 'get_batch': { const result = await apiRequest(`/api/batch/${args?.id}`); return { content: [{ type: 'text' as const, text: JSON.stringify(result, null, 2) }], }; }
- src/index.ts:330-342 (schema)Input schema definition for the get_batch tool, requiring a 'id' string parameter.name: 'get_batch', description: 'Get batch job status and progress', inputSchema: { type: 'object' as const, properties: { id: { type: 'string', description: 'Batch ID', }, }, required: ['id'], }, },