Skip to main content
Glama
AgentX-ai

Mailchimp MCP Server

by AgentX-ai

get_list

Retrieve detailed information about a specific Mailchimp email list using its unique list ID to access audience data and configuration.

Instructions

Get details of a specific list

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
list_idYesThe list ID

Implementation Reference

  • Registers the 'get_list' tool with its name, description, and input schema requiring a list_id.
    { name: "get_list", description: "Get details of a specific list", inputSchema: { type: "object", properties: { list_id: { type: "string", description: "The list ID", }, }, required: ["list_id"], }, },
  • Tool handler for 'get_list': calls MailchimpService.getList with list_id argument and returns the result as formatted JSON text content.
    case "get_list": const list = await service.getList(args.list_id); return { content: [ { type: "text", text: JSON.stringify(list, null, 2), }, ], };
  • Core implementation of the getList method in MailchimpService, which makes an authenticated API request to the Mailchimp /lists/{listId} endpoint.
    async getList(listId: string): Promise<MailchimpList> { return await this.makeRequest(`/lists/${listId}`); }

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