Skip to main content
Glama
deyikong

SendGrid MCP Server

by deyikong

list_automations

View and manage all marketing automations in your SendGrid account to monitor automated email workflows and campaigns.

Instructions

List all marketing automations

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoNumber of results to return
offsetNoPagination offset

Implementation Reference

  • The handler function executes the tool logic by fetching marketing automations from SendGrid API using pagination parameters and returns the result as formatted JSON text.
    handler: async ({ offset, limit }: { offset: number; limit: number }): Promise<ToolResult> => { const result = await makeRequest(`https://api.sendgrid.com/v3/marketing/automations?offset=${offset}&limit=${limit}`); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; },
  • The tool configuration defining title, description, and input schema (offset and limit from PaginationSchema).
    config: { title: "List Marketing Automations", description: "List all marketing automations", inputSchema: { offset: PaginationSchema.offset, limit: PaginationSchema.limit, }, },
  • Registers the automationTools (including list_automations) by spreading into the allTools export, aggregating all tools.
    export const allTools = { ...automationTools, ...campaignTools, ...contactTools, ...mailTools, ...miscTools, ...statsTools, ...templateTools, };
  • src/index.ts:20-23 (registration)
    Final MCP server registration loop that registers every tool from allTools, including list_automations, with its config and handler.
    // Register all tools for (const [name, tool] of Object.entries(allTools)) { server.registerTool(name, tool.config as any, tool.handler as any); }

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