open_csv_uploader
Open the SendGrid CSV contact upload page in your browser to import contact lists for email marketing and transactional email operations.
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:165-174 (handler)The handler function for the 'open_csv_uploader' tool. It returns a ToolResult containing a text message with instructions and the URL to SendGrid's CSV contact upload page.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/tools/contacts.ts:161-164 (schema)The schema/config for the tool, defining its title and description. The tool takes no input parameters.config: { title: "Open CSV Uploader", description: "Open SendGrid CSV contact upload page in browser", },
- src/tools/contacts.ts:160-175 (registration)Registration of the 'open_csv_uploader' tool within the contactTools object, which is aggregated into allTools and registered to the MCP server.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)Final registration loop where all tools from allTools (including open_csv_uploader) are registered to the MCP server.for (const [name, tool] of Object.entries(allTools)) { server.registerTool(name, tool.config as any, tool.handler as any); }