Skip to main content
Glama
AgentX-ai

Mailchimp MCP Server

by AgentX-ai

get_file

Retrieve specific file details from Mailchimp's Marketing API to access email marketing assets and content information.

Instructions

Get details of a specific file

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_idYesThe file ID

Implementation Reference

  • Handler for the 'get_file' tool call. Delegates to MailchimpService.getFile and formats response as JSON text content.
    case "get_file": const file = await service.getFile(args.file_id); return { content: [ { type: "text", text: JSON.stringify(file, null, 2), }, ], };
  • Input schema definition for the 'get_file' tool, specifying the required 'file_id' parameter.
    inputSchema: { type: "object", properties: { file_id: { type: "string", description: "The file ID", }, }, required: ["file_id"], },
  • Tool registration entry in getToolDefinitions array, defining name, description, and schema for 'get_file'.
    { name: "get_file", description: "Get details of a specific file", inputSchema: { type: "object", properties: { file_id: { type: "string", description: "The file ID", }, }, required: ["file_id"], }, },
  • MailchimpService helper method that performs the API request to retrieve file details from Mailchimp File Manager.
    async getFile(fileId: string): Promise<MailchimpFile> { return await this.makeRequest(`/file-manager/files/${fileId}`); }

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