Skip to main content
Glama
AgentX-ai

Mailchimp MCP Server

by AgentX-ai

get_landing_page

Retrieve specific landing page details from Mailchimp by providing the page ID for marketing campaign analysis and management.

Instructions

Get details of a specific landing page

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
page_idYesThe landing page ID

Implementation Reference

  • Core implementation of the getLandingPage method in MailchimpService, which makes an API request to fetch the specific landing page by ID.
    async getLandingPage(pageId: string): Promise<MailchimpLandingPage> { return await this.makeRequest(`/landing-pages/${pageId}`); }
  • Tool schema definition including name, description, and input schema requiring 'page_id'.
    name: "get_landing_page", description: "Get details of a specific landing page", inputSchema: { type: "object", properties: { page_id: { type: "string", description: "The landing page ID", }, }, required: ["page_id"], }, },
  • Handler case in handleToolCall function that invokes the service method and returns formatted JSON response.
    case "get_landing_page": const landingPage = await service.getLandingPage(args.page_id); return { content: [ { type: "text", text: JSON.stringify(landingPage, null, 2), }, ], };
  • Part of the tools array registration where the tool schema is defined and exported for MCP.
    }, }, // Landing Pages { name: "list_landing_pages", description: "List all landing pages", inputSchema: { type: "object", properties: {}, required: [], }, }, { name: "get_landing_page", description: "Get details of a specific landing page", inputSchema: { type: "object", properties: { page_id: { type: "string", description: "The landing page ID", }, }, required: ["page_id"], }, }, // E-commerce Stores { name: "list_stores", description: "List all e-commerce stores", inputSchema: { type: "object", properties: {}, required: [], }, }, { 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"], }, }, // E-commerce Products { name: "list_products", description: "List all products in a store", inputSchema: { type: "object", properties: { store_id: { type: "string", description: "The store ID", }, }, required: ["store_id"], }, }, { 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"], }, }, // E-commerce Orders { name: "list_orders", description: "List all orders in a store", inputSchema: { type: "object", properties: { store_id: { type: "string", description: "The store ID", }, }, required: ["store_id"], }, }, { 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"], }, }, // Conversations { name: "list_conversations", description: "List all conversations", inputSchema: { type: "object", properties: {}, required: [], }, }, { name: "get_conversation", description: "Get details of a specific conversation", inputSchema: { type: "object", properties: { conversation_id: { type: "string", description: "The conversation ID", }, }, required: ["conversation_id"], }, }, ];

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