Skip to main content
Glama
AgentX-ai

Mailchimp MCP Server

by AgentX-ai

get_store

Retrieve specific store details from Mailchimp's Marketing API to access comprehensive e-commerce data for marketing analysis and campaign management.

Instructions

Get details of a specific store

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
store_idYesThe store ID

Implementation Reference

  • Handler case in handleToolCall function that executes the get_store tool by calling the service method and returning formatted JSON response.
    case "get_store":
      const store = await service.getStore(args.store_id);
      return {
        content: [
          {
            type: "text",
            text: JSON.stringify(store, null, 2),
          },
        ],
      };
  • Input schema defining the required 'store_id' parameter for the get_store tool.
    inputSchema: {
      type: "object",
      properties: {
        store_id: {
          type: "string",
          description: "The store ID",
        },
      },
      required: ["store_id"],
  • Registration of the get_store tool in the getToolDefinitions array, including name, description, and schema.
    {
      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"],
      },
    },
  • Helper method in MailchimpService that performs the actual API request to fetch store details from Mailchimp's e-commerce endpoint.
    async getStore(storeId: string): Promise<MailchimpStore> {
      return await this.makeRequest(`/ecommerce/stores/${storeId}`);
    }

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