Skip to main content
Glama
deyikong

SendGrid MCP Server

by deyikong

open_single_send_stats

View detailed performance metrics for a specific SendGrid email campaign to analyze engagement and effectiveness.

Instructions

Open single send stats page for a specific campaign

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
singlesend_idYesThe single send ID to view stats for

Implementation Reference

  • The handler function for the 'open_single_send_stats' tool. It constructs a URL using the provided singlesend_id and returns a ToolResult with a text message instructing the user to open it in their browser.
    handler: async ({ singlesend_id }: { singlesend_id: string }): Promise<ToolResult> => { return { content: [ { type: "text", text: `Please open this URL in your browser to view stats for single send ${singlesend_id}:\nhttps://mc.sendgrid.com/single-sends/${singlesend_id}/stats?view=raw`, }, ], }; },
  • Zod input schema defining the required 'singlesend_id' string parameter.
    inputSchema: { singlesend_id: z.string().describe("The single send ID to view stats for"), },
  • Local registration of the 'open_single_send_stats' tool within the campaignTools export.
    open_single_send_stats: { config: { title: "Open Single Send Stats", description: "Open single send stats page for a specific campaign", inputSchema: { singlesend_id: z.string().describe("The single send ID to view stats for"), }, }, handler: async ({ singlesend_id }: { singlesend_id: string }): Promise<ToolResult> => { return { content: [ { type: "text", text: `Please open this URL in your browser to view stats for single send ${singlesend_id}:\nhttps://mc.sendgrid.com/single-sends/${singlesend_id}/stats?view=raw`, }, ], }; }, },
  • Global registration by spreading campaignTools (which includes open_single_send_stats) into the allTools export used for MCP tools.
    export const allTools = { ...automationTools, ...campaignTools, ...contactTools, ...mailTools, ...miscTools, ...statsTools, ...templateTools, };

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/deyikong/sendgrid-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server