Skip to main content
Glama
deyikong

SendGrid MCP Server

by deyikong

Delete Automation

delete_automation

Permanently delete a marketing automation. This action cannot be undone; use it to remove unwanted automations.

Instructions

Permanently delete a marketing automation. This action cannot be undone.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
automation_idYesThe automation ID to delete

Implementation Reference

  • The handler function for delete_automation. Takes an automation_id, checks read-only mode, then sends a DELETE request to https://api.sendgrid.com/v3/marketing/automations/{automation_id}. Returns a success message.
    delete_automation: {
      config: {
        title: "Delete Automation",
        description: "Permanently delete a marketing automation. This action cannot be undone.",
        inputSchema: {
          automation_id: z.string().describe("The automation ID to delete"),
        },
      },
      handler: async ({ automation_id }: { automation_id: string }): Promise<ToolResult> => {
        const readOnlyCheck = checkReadOnlyMode();
        if (readOnlyCheck.blocked) {
          return { content: [{ type: "text", text: readOnlyCheck.message! }] };
        }
    
        await makeRequest(
          `https://api.sendgrid.com/v3/marketing/automations/${automation_id}`,
          {
            method: "DELETE",
          }
        );
    
        return {
          content: [{
            type: "text",
            text: `Automation ${automation_id} deleted successfully.`
          }]
        };
      },
    },
  • Input schema for delete_automation: requires automation_id as a string.
    config: {
      title: "Delete Automation",
      description: "Permanently delete a marketing automation. This action cannot be undone.",
      inputSchema: {
        automation_id: z.string().describe("The automation ID to delete"),
      },
    },
  • src/index.ts:21-23 (registration)
    Tool registration in the main server setup. delete_automation is registered as part of allTools which spreads automationTools from src/tools/automations.ts.
    for (const [name, tool] of Object.entries(allTools)) {
      server.registerTool(name, tool.config as any, tool.handler as any);
    }
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Discloses irreversibility ('cannot be undone'), which is key behavioral info. No annotations provided, so description carries full burden; however, it does not mention permissions, side effects on related data, or confirmation steps.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, no wasted words. Front-loaded with the core action and permanent nature.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple one-parameter delete tool with no output schema, the description covers the essential: action and irreversibility. Could mention error conditions or prerequisites, but adequate for its complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with parameter description 'The automation ID to delete'. Description adds no extra meaning beyond that; baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Clearly states 'permanently delete a marketing automation', with specific verb and resource. Distinguishes from sibling delete tools by specifying 'automation' and adding 'cannot be undone'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use vs alternatives like other delete tools, nor any when-not-to-use or pre conditions. Agent must infer from context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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