Skip to main content
Glama

Cancel Pending Question

cancel_question
DestructiveIdempotent

Retract a pending question that is no longer needed or is moving to the current client. Returns cancelled:true only when a pending question was removed. False may mean it was already answered, expired, missing or unavailable. An unavailable state includes handoffAction:stop because cancellation could not safely inspect or fence the question. Does not retract an answer already recorded.

Input Schema

NameRequiredDescriptionDefault
handoffNoTrue when you are cancelling because you are about to ask the same question in the current client. For the next minute the Pushary hook then lets your own question tool through instead of sending it back to the phone. Set automatically whenever a live question is cancelled.
correlationIdYesThe correlationId of the pending question to cancel, as returned by ask_user or send_notification

Output Schema

NameRequiredDescriptionDefault
hintNoWhat to do when cancellation could not safely inspect the question.
statusNoPresent when Pushary could not safely read or fence the question state.
cancelledYesTrue when a still-pending question was removed. False when it was already terminal, missing, or unavailable; inspect status and handoffAction when present.
askHandoffNoTrue when the session was marked as handing off to the current client, so the hook will not re-ask on the phone for the next minute.
correlationIdYesThe question this result refers to, echoed back.
handoffActionNoStop rather than opening another answer surface when the question state is unavailable.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / handoff
      Added value: +{
      +  "description": "True when you are cancelling because you are about to ask the same question in the current client. For the next minute the Pushary hook then lets your own question tool through instead of sending it back to the phone. Set automatically whenever a live question is cancelled.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / askHandoff
      Added value: +{
      +  "description": "True when the session was marked as handing off to the current client, so the hook will not re-ask on the phone for the next minute.",
      +  "type": "boolean"
      +}
  2. Changed4 schema fields changed
    • changedOutput schema / properties / cancelled / description
      Previous value: -"True when a still-pending question was removed. False when there was nothing to remove because it was already answered, already expired, or never existed."New value: +"True when a still-pending question was removed. False when it was already terminal, missing, or unavailable; inspect status and handoffAction when present."
    • addedOutput schema / properties / handoffAction
      Added value: +{
      +  "const": "stop",
      +  "description": "Stop rather than opening another answer surface when the question state is unavailable.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / hint
      Added value: +{
      +  "description": "What to do when cancellation could not safely inspect the question.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / status
      Added value: +{
      +  "const": "unavailable",
      +  "description": "Present when Pushary could not safely read or fence the question state.",
      +  "type": "string"
      +}
  3. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "cancelled": {
      +      "description": "True when a still-pending question was removed. False when there was nothing to remove because it was already answered, already expired, or never existed.",
      +      "type": "boolean"
      +    },
      +    "correlationId": {
      +      "description": "The question this result refers to, echoed back.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "cancelled",
      +    "correlationId"
      +  ],
      +  "type": "object"
      +}
  4. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the annotations by explaining the return contract ('cancelled:true only when a pending question was removed') and enumerating why false can occur (answered, expired, missing, unavailable, handoffAction:stop). This is exactly the kind of failure-mode detail an agent needs for a destructive operation.

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?

Four tight sentences, front-loaded with the action and scope, then the return contract and failure modes. Every sentence carries information and none is wasted.

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?

An output schema exists and the description still usefully explains the boolean return contract; annotations cover the destructive/idempotent profile and the description supplies the safety caveats. Nothing material is missing for correct invocation.

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%, so both correlationId and handoff are already documented in the schema. The description's 'moving to the current client' wording loosely reinforces the handoff concept but adds no syntax or format detail beyond the schema, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource ('Retract a pending question') and adds scope ('no longer needed or is moving to the current client'), so the agent can tell it apart from ask_user and wait_for_answer. It does not name a sibling alternative explicitly, which keeps it below a 5.

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 conditions for use (question no longer needed, or moving to the current client) and implicitly excludes answered questions via 'Does not retract an answer already recorded.' No explicit alternatives such as wait_for_answer are mentioned, so it stops short of a 5.

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.

Resources