Skip to main content
Glama
AgentX-ai

Mailchimp MCP Server

by AgentX-ai

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
NameRequiredDescriptionDefault
store_idYesThe store ID
order_idYesThe order ID

Implementation Reference

  • 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), }, ], };
  • 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"], },
  • 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"], }, },
  • 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}` ); }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AgentX-ai/mailchimp-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server