Skip to main content
Glama

cancel_task

Buyer cancels only an unconfirmed task; active-order disputes require the operator.

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": {
      "task_id": "<task_id>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "cancel_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
task_idYes
idempotency_keyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden and it does disclose a meaningful precondition: only unconfirmed tasks may be cancelled, and disputes escalate elsewhere. It does not say whether cancellation is reversible, what state the task ends in, what happens if the task is already confirmed, or what errors are returned, so the mutation profile remains incomplete.

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?

A single dense sentence with the eligibility constraint front-loaded ahead of the escalation rule; nothing is wasted. The phrasing is slightly telegraphic ('Buyer cancels only an unconfirmed task') but remains unambiguous.

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

Completeness2/5

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

For a two-required-parameter mutation tool with no annotations and no output schema, the definition leaves too much unsaid: idempotency behavior, post-cancellation task state, failure modes, and return value are all absent. The eligibility rule alone does not cover the complexity of the operation.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate and it does not. It never mentions idempotency_key or its retry semantics, which is the one parameter whose meaning an agent cannot infer, and task_id is only implicitly covered by the word 'task'.

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 and resource (cancels a task) plus a role and state qualifier (Buyer, unconfirmed). An agent can tell this is a cancellation tool restricted to pre-confirmation state, which distinguishes it from confirm_task or review_delivery, though no sibling is named explicitly.

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 both a when-to-use condition (task is unconfirmed) and a when-not-to-use exclusion (active-order disputes belong to the operator). The gap is that the operator-side alternative is not identified by tool name, so routing after the exclusion is still left to the agent.

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.