list_senders
Retrieve all verified email senders to manage authorized email addresses for sending campaigns and transactional emails through SendGrid.
Instructions
List all verified senders
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/contacts.ts:260-263 (handler)The handler function for the 'list_senders' tool. It makes an API request to SendGrid's /v3/marketing/senders endpoint to retrieve all verified sender identities and returns the result as formatted JSON.handler: async (): Promise<ToolResult> => { const result = await makeRequest("https://api.sendgrid.com/v3/marketing/senders"); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; },
- src/tools/contacts.ts:256-259 (schema)Configuration schema for the 'list_senders' tool, defining its title and description. No input parameters are required.config: { title: "List Senders", description: "List all verified senders", },
- src/tools/contacts.ts:255-264 (registration)The 'list_senders' tool is defined and registered within the contactTools object export in contacts.ts, which is later spread into the main allTools export.list_senders: { config: { title: "List Senders", description: "List all verified senders", }, handler: async (): Promise<ToolResult> => { const result = await makeRequest("https://api.sendgrid.com/v3/marketing/senders"); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; }, },
- src/tools/index.ts:3-17 (registration)The contactTools (containing list_senders) are imported and registered by spreading into the allTools object, which aggregates all tools.import { contactTools } from "./contacts.js"; import { mailTools } from "./mail.js"; import { miscTools } from "./misc.js"; import { statsTools } from "./stats.js"; import { templateTools } from "./templates.js"; export const allTools = { ...automationTools, ...campaignTools, ...contactTools, ...mailTools, ...miscTools, ...statsTools, ...templateTools, };