Skip to main content
Glama

agent_task_stop

Request cooperative cancellation of a running web automation task. Use it to stop an agent goal early, though an in-flight model call may finish first.

Instructions

Request cooperative cancellation; an in-flight model call may finish 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": "agent_task_stop"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.0

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 burden. It usefully discloses the key trait that cancellation is cooperative and an in-flight model call may complete first, but it omits what happens to the task's resulting state, whether the call is idempotent, and whether repeated calls are needed to force termination.

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?

A single compact sentence with the cooperative-cancellation caveat front-loaded. Nothing is wasted and there is no filler.

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

Completeness3/5

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

The tool is simple and has no output schema, so the description's main job is to explain the cancellation semantics — which it does. However, for a state-changing operation with zero annotation coverage, it should also say what the task transitions to and how to confirm the stop.

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 required 'id' parameter, and the description never mentions it — neither its meaning (task identifier) nor its format. The only cue is the tool name, so the description adds essentially no meaning beyond the schema's type and minLength constraint.

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 action — 'request cooperative cancellation' — which is clearly distinct from the sibling pause/resume/start operations. The resource being cancelled is only implied by the tool name rather than stated in the description, so it is not quite a five.

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 implied: call this to cancel a task. There is no explicit when/when-not guidance, no mention of how it differs from agent_task_pause or agent_task_resume, and no suggestion to follow up with agent_task_get to verify the task actually stopped.

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