Skip to main content
Glama

ag_cancel

Stop tracking a task by task_id; this does not stop the agent, so stop the agent in the desktop app if needed.

Instructions

Stop tracking a task (does not stop the agent; stop it in the app).

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": "ag_cancel"
  }
}

Input Schema

NameRequiredDescriptionDefault
task_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/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, and it does disclose the most important behavioral trait: the agent keeps running. However, it says nothing about whether the task record survives, whether the change is reversible, what happens to results already captured, or what the response contains.

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?

One short sentence with the main action front-loaded and the critical caveat in a parenthetical. There is no filler, and every clause changes how an agent would call it.

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?

For a one-parameter, no-output-schema tool, the description covers the key behavioral surprise but leaves the parameter's source undocumented and doesn't indicate the effect on the underlying task data. Adequate, but with a clear gap an agent would hit on first use.

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?

The single parameter task_id has 0% schema description coverage, so the description must compensate and does not. It never says where a task_id comes from (e.g., from ag_tasks), nor gives format or sourcing guidance, leaving the agent to guess the identifier's origin.

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: 'Stop tracking a task.' The parenthetical clarifies the scope further by distinguishing tracking-stop from agent-stop, which matters among siblings like ag_stop and ag_tasks. It falls short of 5 because it doesn't name the sibling tools it differs from.

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 a clear when-not: this does not stop the agent, and the agent must be stopped in the app. That exclusion prevents a plausible misuse. It doesn't name an alternative tool or state prerequisites, so it stops short of fully explicit routing.

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