get_store
Retrieve detailed information about a specific e-commerce store from Mailchimp's Marketing API to access store data for email marketing campaigns.
Instructions
Get details of a specific store
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| store_id | Yes | The store ID |
Implementation Reference
- src/tools/index.ts:1059-1068 (handler)Executes the get_store tool by calling the service method and returning the store data as formatted JSON text content.case "get_store": const store = await service.getStore(args.store_id); return { content: [ { type: "text", text: JSON.stringify(store, null, 2), }, ], };
- src/tools/index.ts:436-449 (schema)Tool definition including name, description, and input schema requiring store_id.{ name: "get_store", description: "Get details of a specific store", inputSchema: { type: "object", properties: { store_id: { type: "string", description: "The store ID", }, }, required: ["store_id"], }, },
- src/index.ts:42-46 (registration)MCP registration of the listTools handler, which returns all tool definitions including get_store via getToolDefinitions.server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools: getToolDefinitions(mailchimpService), }; });
- src/services/mailchimp.ts:304-306 (helper)Core service method that makes the Mailchimp API request to fetch the specific store by ID.async getStore(storeId: string): Promise<MailchimpStore> { return await this.makeRequest(`/ecommerce/stores/${storeId}`); }
- src/types/index.ts:760-799 (schema)TypeScript interface defining the structure of the MailchimpStore object returned by the tool.export interface MailchimpStore { id: string; list_id: string; name: string; platform: string; domain?: string; is_syncing: boolean; email_address: string; currency_code: string; money_format: string; primary_locale: string; timezone: string; phone?: string; address?: { address1: string; address2: string; city: string; province: string; province_code: string; postal_code: string; country: string; country_code: string; }; connected_site?: { site_foreign_id: string; site_script: { url: string; fragment: string; }; }; created_at: string; updated_at: string; _links?: Array<{ rel: string; href: string; method: string; targetSchema?: string; schema?: string; }>; }