get_order
Retrieve specific order details from a Mailchimp store using store ID and order ID to access marketing-related purchase information.
Instructions
Get details of a specific order
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| store_id | Yes | The store ID | |
| order_id | Yes | The order ID |
Implementation Reference
- src/tools/index.ts:1123-1132 (handler)Handler for the 'get_order' tool: calls MailchimpService.getOrder and returns the result as JSON-formatted text content.case "get_order": const order = await service.getOrder(args.store_id, args.order_id); return { content: [ { type: "text", text: JSON.stringify(order, null, 2), }, ], };
- src/tools/index.ts:501-514 (schema)Input schema for the 'get_order' tool, defining required store_id and order_id as strings.inputSchema: { type: "object", properties: { store_id: { type: "string", description: "The store ID", }, order_id: { type: "string", description: "The order ID", }, }, required: ["store_id", "order_id"], },
- src/tools/index.ts:498-515 (registration)Registration of the 'get_order' tool in getToolDefinitions array, with name, description, and input schema.{ name: "get_order", description: "Get details of a specific order", inputSchema: { type: "object", properties: { store_id: { type: "string", description: "The store ID", }, order_id: { type: "string", description: "The order ID", }, }, required: ["store_id", "order_id"], }, },
- src/services/mailchimp.ts:337-341 (helper)MailchimpService helper method that fetches the specific order details from the Mailchimp API endpoint.async getOrder(storeId: string, orderId: string): Promise<MailchimpOrder> { return await this.makeRequest( `/ecommerce/stores/${storeId}/orders/${orderId}` ); }