Skip to main content
Glama

draft_discard

Destructive

Discard one of the user's drafts, as the page's Discard does, only when the user asked; discarded=false brings a discarded draft back as it was. Nothing is sent and nothing is deleted: a discarded draft is kept 30 days. A scheduled message is stopped first (draft_schedule with cancel). Shows in their Activity under your name, with Undo. Optional reason: why you're making this change, in one sentence the person reads (at most 1000 characters). Optional sources: reference addresses in Home, such as /mail/#/c/12; never message or document text.

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": "<draft>",
      "author": "<author>"
    },
    "name": "draft_discard"
  }
}

Input Schema

NameRequiredDescriptionDefault
draftYes
modelNo
authorYes
reasonNo
sourcesNo
discardedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations only declare destructiveHint=true, readOnlyHint=false, openWorldHint=false; the description adds the substantive facts an agent needs: nothing is sent or permanently deleted, the draft is retained 30 days, the action is reversible with Undo and with discarded=false, a pending schedule is cancelled first, and the action is attributed to the agent in the user's Activity. The 'nothing is deleted' framing sits slightly against destructiveHint=true but is consistent with a state-mutating-but-recoverable operation, so it clarifies rather than contradicts.

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 core action and the reversibility rule, and most sentences carry distinct information (retention, schedule cancellation, activity attribution). It is somewhat run-on with semicolons and the trailing reason/sources notes could be tightened, but there is little outright waste.

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

Completeness3/5

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

For a six-parameter mutation tool with no output schema and zero schema description coverage, the description covers side effects, retention, reversibility and user-visible consequences well, but leaves the identity parameters (draft, author, model) unexplained and says nothing about failure modes such as an already-discarded draft or an unknown id.

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 description coverage is 0%, so the description carries the burden, and it explains three of six parameters well: discarded (restore semantics), reason (one sentence, max 1000 chars), and sources (Home reference addresses like /mail/#/c/12, never message or document text). It says nothing about 'draft' (presumably an identifier and its format), 'author' (required), or 'model', leaving half the parameters undocumented in both schema and prose.

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?

States a specific verb and resource ('Discard one of the user's drafts') and immediately clarifies the semantics of the inverse case ('discarded=false brings a discarded draft back as it was'), which an agent could not guess from the name. It also distinguishes itself from the scheduling sibling by noting that a scheduled message is cancelled first via draft_schedule.

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 gating condition ('only when the user asked') and names the alternative path for scheduled drafts (draft_schedule with cancel). It does not spell out when to prefer discarding over editing a draft (draft_edit) or listing drafts (draft_list), but the primary usage constraint is unambiguous.

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.