Skip to main content
Glama
Garoth

SendGrid MCP Server

by Garoth

list_single_sends

Retrieve all single sends from your SendGrid account to view and manage email campaigns.

Instructions

List all single sends in your SendGrid account

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler logic for the 'list_single_sends' tool call. It invokes the SendGridService.listSingleSends() method and returns a formatted JSON response containing id, name, status, and send_at for each single send.
    case 'list_single_sends': const allSingleSends = await service.listSingleSends(); return { content: [{ type: 'text', text: JSON.stringify(allSingleSends.map((s: SendGridSingleSend) => ({ id: s.id, name: s.name, status: s.status, send_at: s.send_at })), null, 2) }] };
  • Input schema for the 'list_single_sends' tool, which requires no parameters.
    inputSchema: { type: 'object', properties: {}, required: [] }
  • Registration of the 'list_single_sends' tool in the getToolDefinitions array, including name, description, and schema.
    { name: 'list_single_sends', description: 'List all single sends in your SendGrid account', inputSchema: { type: 'object', properties: {}, required: [] } },
  • Helper method in SendGridService that performs the actual API call to list all single sends from SendGrid.
    async listSingleSends(): Promise<SendGridSingleSend[]> { const [response] = await this.client.request({ method: 'GET', url: '/v3/marketing/singlesends' }); return (response.body as { result: SendGridSingleSend[] }).result || []; }

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

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