open_csv_uploader
Opens SendGrid's CSV contact upload page in your browser to import contact lists for email marketing campaigns and contact management.
Instructions
Open SendGrid CSV contact upload page in browser
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/contacts.ts:160-175 (handler)The complete definition of the 'open_csv_uploader' tool, including its configuration (title, description) and handler function. The handler returns a text message with the URL to the SendGrid CSV uploader interface.open_csv_uploader: { config: { title: "Open CSV Uploader", description: "Open SendGrid CSV contact upload page in browser", }, handler: async (): Promise<ToolResult> => { return { content: [ { type: "text", text: "Please open this URL in your browser to upload contacts via CSV:\nhttps://mc.sendgrid.com/contacts/import/upload-csv", }, ], }; }, },
- src/index.ts:21-23 (registration)The registration loop in the main MCP server file that registers all tools from allTools, including 'open_csv_uploader', by calling server.registerTool for each.for (const [name, tool] of Object.entries(allTools)) { server.registerTool(name, tool.config as any, tool.handler as any); }
- src/tools/index.ts:9-16 (registration)Aggregates all individual tool sets (including contactTools containing open_csv_uploader) into the allTools object exported for use in the main server.export const allTools = { ...automationTools, ...campaignTools, ...contactTools, ...mailTools, ...miscTools, ...statsTools, ...templateTools,