Skip to main content
Glama

Cancel batch

cancel_batch
DestructiveIdempotent

Cancel every email in a batch send that is still scheduled. Emails already queued or sent are left alone and counted in not_cancellable. Safe to repeat: a second call cancels nothing more.

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": {
      "batch_id": "<batch_id>"
    },
    "name": "cancel_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
batch_idYesBatch id (batch_…)

Output Schema

NameRequiredDescriptionDefault
batch_idYesBatch id (batch_…)
cancelledYesScheduled emails this call cancelled
not_cancellableYesEmails already queued, sent or finished, which can no longer be cancelled
already_cancelledYesEmails that were already cancelled before this call

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the description earns credit for going beyond them: it specifies exactly which emails are destroyed (only still-scheduled ones), what happens to the rest (left alone, counted in not_cancellable), and confirms repeat-call behavior. Permissions requirements and error conditions are not covered.

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?

Three short sentences, front-loaded with the action and scope, then the exclusion, then the idempotency note. Every sentence adds distinct information with no repetition or filler.

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 tool with an output schema and rich annotations, the description covers action, scope, side effects, and repeat-call semantics — enough to call it correctly. Only permission/authorization expectations and failure modes are absent, which is a minor gap.

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 100% for the single batch_id parameter, so the schema already carries the parameter documentation. The description adds no format, syntax, or lookup guidance beyond what the schema states, making the baseline 3 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?

The description states a precise verb and resource ('cancel every email in a batch send') plus a scope qualifier ('still scheduled'), so an agent knows exactly what this does and what it does not touch. No sibling in the catalog performs batch cancellation, so no disambiguation is needed.

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

Usage Guidelines3/5

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

Usage is implied by the scope statement — use it when scheduled emails in a batch must be stopped — and the exclusion of queued/sent emails acts as a partial boundary. However, there is no explicit when-to-use framing, no named alternative (e.g. get_batch to inspect a batch first), and no stated prerequisites.

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.