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