Skip to main content
Glama
AgentX-ai

Mailchimp MCP Server

by AgentX-ai

get_account

Retrieve Mailchimp account details and configuration settings to manage email marketing campaigns and audience data.

Instructions

Get account information

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Direct handler for the 'get_account' tool call in the handleToolCall function. Fetches account data using the Mailchimp service and returns it formatted as JSON text content for MCP.
    case "get_account": const account = await service.getAccount(); return { content: [ { type: "text", text: JSON.stringify(account, null, 2), }, ], };
  • Tool registration definition including name, description, and empty input schema for 'get_account' in the exported tools list.
    { name: "get_account", description: "Get account information", inputSchema: { type: "object", properties: {}, required: [], }, },
  • Helper method in MailchimpService that performs the actual API request to retrieve account information from the Mailchimp root endpoint ('/').
    async getAccount(): Promise<MailchimpAccount> { return await this.makeRequest("/"); }
  • Type definition for MailchimpAccount, used as the return type for getAccount and output schema reference.
    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