Skip to main content
Glama
Decision Browser
by HaffASE

cancel_task

Cancel a single running browser task by its run ID to stop further automation and reclaim resources. Use when a task must be halted before completion.

Instructions

Cancel one task. Strict args.

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

Input Schema

NameRequiredDescriptionDefault
run_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden, and it discloses almost nothing: it does not say whether cancellation is reversible, what state the task transitions to, what permissions are required, or what happens to a task that has already finished. "Cancel" does imply a mutation and "one task" implies single-target scope, but that is the extent of it.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

At two short sentences it is certainly concise and the verb-resource statement is front-loaded. But the second sentence, "Strict args," is filler that conveys no actionable meaning, so brevity here comes at the cost of substance rather than from efficiency.

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?

An output schema exists, so return values need not be explained, but for a mutation tool with zero annotations and an undocumented parameter the definition is under-specified. An agent cannot determine preconditions, irreversibility, or the meaning of run_id from this text.

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% for the single run_id parameter, so the description must compensate and does not. "Strict args" only hints that the argument is tightly validated, without explaining the run_id format, its source, or the constraint already encoded in the pattern.

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?

"Cancel one task" names a specific verb (cancel) and resource (task) and adds cardinality (one), which is enough for an agent to distinguish it from get_task and start_task by intent. It stops short of any explicit sibling differentiation or scope statement.

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

Usage Guidelines2/5

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

There is no when-to-use guidance: nothing says which task states are cancellable, whether prerequisites exist, or what to do instead when cancellation is not appropriate. The only usage-adjacent text, "Strict args," is a vague warning rather than guidance.

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