Skip to main content
Glama

Cancel a durable wait

cancel_notification
Destructive

Deletes a wait created with notify_on_message by its ID after user confirmation, stopping the pending notification; use list_notifications to find the ID.

Instructions

Delete a wait created with notify_on_message, by its ID (see list_notifications). Confirm with the user first.

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": {
      "id": "<id>"
    },
    "name": "cancel_notification"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesID of the wait, e.g. w1a2b3c4d

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.7.0

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is known. The description usefully adds the requirement to confirm with the user and narrows scope to waits created by notify_on_message, but says nothing about what happens if the wait already fired or whether cancellation is idempotent. Credit for the confirmation step, but state/error behavior is left undisclosed.

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 with no filler; the verb and resource come first, followed by the ID reference and the confirmation instruction in order of operational importance.

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 single-parameter destructive tool with no output schema, the description covers purpose, scope, ID provenance, and the human-confirmation requirement. Only the outcome semantics of cancelling an already-completed or expired wait are missing, which is a minor but real gap.

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

Parameters4/5

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

Schema coverage is 100% and the schema already gives an example ID format, so the schema carries the structural load. The description still adds real meaning by telling the agent where to obtain a valid ID (list_notifications) and by scoping it to waits created via notify_on_message rather than any arbitrary identifier.

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 (delete) and resource (a wait created with notify_on_message), plus the key selector (ID). It links the tool back to the sibling that creates these waits and to list_notifications for lookup, so an agent can distinguish it from wait_for_message and notify_on_message without opening a 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 clear usage context: use this to remove an existing durable wait, find the ID via list_notifications, and confirm with the user first. It does not explicitly state when not to use it (e.g. when the wait should simply be allowed to fire), but the surrounding workflow is implied well enough.

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