Skip to main content
Glama

Cancel a background agy task

agy_cancel

Terminate a still-running background agy task by task_id to stop it early. Use it when a background ask or continue job is no longer needed.

Instructions

Kill a still-running background agy task started with agy_ask/agy_continue's background:true.

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

Input Schema

NameRequiredDescriptionDefault
task_idYestask_id of the running background task to kill.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It usefully discloses that this is a destructive 'kill' operation and that the target must be currently running and was started in background mode, but says nothing about what happens to results, idempotency, or error behavior if the task already finished.

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 sentence with the action, target, and precondition front-loaded; no redundant or filler wording.

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 one-parameter kill tool with no output schema and no annotations, the description covers the essential action, target, and creation precondition. It falls slightly short on post-call behavior, but nothing required to invoke it correctly is missing.

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

Parameters3/5

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

Schema coverage is 100% and the schema already defines task_id as 'task_id of the running background task to kill.' The description only reinforces that the ID must refer to a running background task, adding little syntax or format detail beyond the schema; baseline 3 applies.

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+resource: 'Kill a still-running background agy task', and scopes it to tasks started with agy_ask/agy_continue's background:true. An agent can tell this apart from agy_status or agy_list_tasks, though the description doesn't explicitly contrast with those siblings.

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 precondition for use: the task must be a 'still-running' background task created via agy_ask/agy_continue with background:true. This implicitly excludes foreground or already-finished tasks, but no alternative action is named for those cases.

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