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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/index.ts:895-904 (handler)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), }, ], };
- src/tools/index.ts:312-320 (registration)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: [], }, },
- src/services/mailchimp.ts:256-258 (helper)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("/"); }
- src/types/index.ts:653-688 (schema)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; }>; }