Skip to main content
Glama
AgentX-ai

Mailchimp MCP Server

by AgentX-ai

get_product

Retrieve detailed information about a specific product from a Mailchimp store using store and product IDs.

Instructions

Get details of a specific product

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
store_idYesThe store ID
product_idYesThe product ID

Implementation Reference

  • Core handler function in MailchimpService that fetches the specific product details via the Mailchimp API endpoint.
    async getProduct( storeId: string, productId: string ): Promise<MailchimpProduct> { return await this.makeRequest( `/ecommerce/stores/${storeId}/products/${productId}` ); }
  • Tool dispatcher handler case that calls the service method and formats the response as MCP content.
    case "get_product": const product = await service.getProduct(args.store_id, args.product_id); return { content: [ { type: "text", text: JSON.stringify(product, null, 2), }, ], };
  • Tool registration definition including name, description, and input schema for get_product.
    { name: "get_product", description: "Get details of a specific product", inputSchema: { type: "object", properties: { store_id: { type: "string", description: "The store ID", }, product_id: { type: "string", description: "The product ID", }, }, required: ["store_id", "product_id"], }, },
  • TypeScript interface defining the structure of the Mailchimp product response (output schema).
    export interface MailchimpProduct { id: string; title: string; handle: string; url: string; description: string; type: string; vendor: string; image_url?: string; variants: Array<{ id: string; title: string; url: string; sku: string; price: number; inventory_quantity: number; image_url?: string; backorders: string; visibility: string; }>; published_at_foreign?: 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