Skip to main content
Glama
AgentX-ai

Mailchimp MCP Server

by AgentX-ai

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

Implementation Reference

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

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