Skip to main content
Glama
AgentX-ai

Mailchimp MCP Server

by AgentX-ai

get_account

Retrieve account details and settings from your Mailchimp email marketing platform to manage your profile and access key information.

Instructions

Get account information

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Core handler method that makes an API request to the Mailchimp root endpoint ('/') to retrieve account information.
    async getAccount(): Promise<MailchimpAccount> { return await this.makeRequest("/"); }
  • Tool handler dispatch case in handleToolCall function that calls the service's getAccount method and returns the account data as formatted JSON text content.
    case "get_account": const account = await service.getAccount(); return { content: [ { type: "text", text: JSON.stringify(account, null, 2), }, ], };
  • Tool definition in getToolDefinitions array, including name, description, and empty input schema (no parameters required).
    { name: "get_account", description: "Get account information", inputSchema: { type: "object", properties: {}, required: [], }, },
  • TypeScript interface defining the structure of the Mailchimp account data returned by the tool.
    export interface MailchimpAccount { account_id: string; account_name: string; account_industry: string; account_created: string; account_updated: string; contact: { company: string; address1: string; address2: string; city: string; state: string; zip: string; country: string; phone: string; }; pro_enabled: boolean; last_login: string; total_subscribers: number; industry_stats: { type: string; open_rate: number; click_rate: number; bounce_rate: number; unopen_rate: number; unsub_rate: number; abuse_rate: number; }; _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