Skip to main content
Glama

Cancel a confirmed email before it is sent

cancel_email_send
Idempotent

Undo send: stop a confirmed email while it still waits for its send time (status scheduled, send_at).

    Requires email:read and email:send. Use it when the owner says to cancel, undo or stop the email.
    Nothing is sent; the draft goes back to awaiting confirmation, so the owner can confirm it again
    later or you can prepare a corrected draft. Once sending has started it is too late and this
    reports so; never call send_email again to "fix" a cancelled email without the owner's request.
    

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": "cancel_email_send"
  }
}

Input Schema

NameRequiredDescriptionDefault
draft_idYesDraft id whose status is scheduled (confirmed, waiting out the owner's undo time).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare it is not read-only, non-destructive and idempotent, and the description adds what those hints cannot cover: the required scopes (email:read, email:send), the resulting state (draft returns to awaiting confirmation), and the failure mode when sending has already begun. That is substantial context on side effects and preconditions.

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?

The description leads with the operation and state condition, then permissions, then usage, then the failure mode - a sensible order. The final clause about not re-calling send_email is slightly tangential, but it prevents a plausible agent mistake rather than being filler.

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

Completeness5/5

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

For a single-parameter state-transition tool with no output schema, the description covers the precondition, the authorization needs, the resulting state, and the error case. An agent would not need to inspect anything else before calling.

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?

There is a single parameter with full schema coverage, and the schema description already explains that draft_id must be a scheduled, confirmed draft awaiting the undo window. The prose adds no further parameter detail beyond this baseline.

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?

The description uses a specific verb and resource ('Undo send: stop a confirmed email') and scopes it by state ('status scheduled, send_at'), so an agent can tell whether a given email qualifies. It is clearly distinct from send_email and from draft-preparation tools.

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?

It says when to use it ('when the owner says to cancel, undo or stop the email') and when it is too late ('once sending has started it is too late and this reports so'). It also warns against re-calling send_email to 'fix' a cancelled email - useful, but this is a caution about another tool rather than a statement of the alternative action for this one.

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.