Skip to main content
Glama

Cancel browser task

task_cancel
DestructiveIdempotent

Cancel a BrowserPair task and release the user's browser. Work already done on websites is not undone. Already-ended tasks stay as they are.

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>"
    },
    "name": "task_cancel"
  }
}

Input Schema

NameRequiredDescriptionDefault
task_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A3.6/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's job is to qualify that destruction, and it does: website-side work is not undone, only the browser is released. That is genuine added context. It stops short of saying whether the task record is deleted or retained as cancelled, which is the remaining behavioral question.

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, action first, then the destruction boundary, then the no-op case. No filler and no repetition of the title or name.

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 tool with rich annotations and no output schema, the description covers what the call does and the limits of its effect. The gaps are the undisclosed parameter semantics and return behavior, both minor relative to the tool's simplicity.

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?

There is one required parameter, task_id, with 0% schema description coverage, so the description must supply the meaning and supplies none — no format, no note that it must reference a live/known task, and no pointer to task_find or task_state for obtaining it. The only cue is the name itself.

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?

The description uses a specific verb and resource ("Cancel a BrowserPair task") and names the side effect ("release the user's browser"). It is unambiguous against the sibling set, none of which perform cancellation, though it never explicitly contrasts itself with observation/state tools an agent might reach for first.

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 only implied: an agent infers you cancel a task you no longer want running. The sentence "Already-ended tasks stay as they are" usefully signals the no-op case, but there is no guidance on when to cancel versus letting a task finish, or on inspecting state first with task_state/task_find.

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