Skip to main content
Glama
AgentX-ai

Mailchimp MCP Server

by AgentX-ai

get_landing_page

Retrieve detailed information about a specific Mailchimp landing page using its unique ID to access page content and configuration data.

Instructions

Get details of a specific landing page

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
page_idYesThe landing page ID

Implementation Reference

  • Handler logic for the 'get_landing_page' tool within the handleToolCall switch statement. It calls the service method and returns a formatted text response with JSON data.
    case "get_landing_page":
      const landingPage = await service.getLandingPage(args.page_id);
      return {
        content: [
          {
            type: "text",
            text: JSON.stringify(landingPage, null, 2),
          },
        ],
      };
  • Tool registration in getToolDefinitions array, including name, description, and input schema.
    {
      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"],
      },
    },
  • Input schema definition for the 'get_landing_page' tool, specifying the required 'page_id' parameter.
    inputSchema: {
      type: "object",
      properties: {
        page_id: {
          type: "string",
          description: "The landing page ID",
        },
      },
      required: ["page_id"],
    },
  • Service helper method that makes the API request to fetch landing page details from Mailchimp.
    async getLandingPage(pageId: string): Promise<MailchimpLandingPage> {
      return await this.makeRequest(`/landing-pages/${pageId}`);
    }

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