Skip to main content
Glama

delete_draft

DestructiveIdempotent

Delete an UNSENT email draft (email_drafts) you no longer need. Only rows with status 'draft' can be removed — a sent email is a record and is refused. Any temporary download links belonging to the draft go with it. Use this after abandoning a draft, so it does not linger on the lead looking like mail that is still due to go out.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "draft_id": "<draft_id>"
    },
    "name": "delete_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
draft_idYesID of the draft to delete

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / draft_id / description
      Added value: +"ID of the draft to delete"
  2. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, but the description adds real context they do not carry: the status precondition that causes a refusal, and the cascade that 'temporary download links belonging to the draft go with it.' That is exactly the collateral-damage disclosure an agent needs before confirming a destructive call.

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

Conciseness4/5

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

Front-loaded with the action and the key constraint, then the cascade, then the rationale. The closing clause about the draft 'looking like mail that is still due to go out' is a little ornate, but it does convey the consequence of not deleting.

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 one-parameter destructive mutation, the description covers precondition, refusal behavior, and cascade effects, which is most of what matters. It does not say whether the deletion is recoverable or what an agent sees on refusal, though destructiveHint partially covers the safety profile.

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?

Single parameter with 100% schema description coverage, so the schema already explains draft_id. The description adds no format, sourcing, or lookup hints beyond what the schema states, which is the baseline case.

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?

Names a specific verb and resource — 'Delete an UNSENT email draft (email_drafts)' — and immediately scopes it against the confusing neighbour case: a sent email is 'a record and is refused.' An agent can tell this apart from send_draft_email or the generic delete_* siblings without opening any schema.

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

Usage Guidelines4/5

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

Gives an explicit trigger ('Use this after abandoning a draft') and an explicit exclusion (only rows with status 'draft' can be removed; sent mail is refused). It does not name a sibling alternative such as send_draft_email for the case where the user actually wants to send rather than discard, so it stops short of full routing guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.