Skip to main content
Glama

cancel

Idempotent

Stop a running background render job to close its pages and kill its encoder while keeping already rendered frames cached for reuse. Jobs that already ended remain unchanged.

Instructions

Stop a background render job (render with background: true). Its pages close and its encoder is killed; frames already rendered stay in the frame cache, so rendering again reuses them. A job that has ended stays as it was. Returns the job; jobs lists them.

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": {
      "job": "<job>"
    },
    "name": "cancel"
  }
}

Input Schema

NameRequiredDescriptionDefault
jobYesThe job id render or jobs returned

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.2
    • addedInput schema / properties / job / description
      Added value: +"The job id render or jobs returned"
  2. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare the generic profile (not read-only, not destructive, idempotent, closed-world). The description goes well beyond that by disclosing the concrete effects: pages close, the encoder is killed, already-rendered frames remain in the frame cache and are reused on a subsequent render. That tells the agent exactly what is destroyed and what survives, which is the key uncertainty for a cancel operation.

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

Conciseness4/5

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

Four short sentences, front-loaded with the action and its scope before the side effects. The final sentence ('Returns the job; jobs lists them.') is compressed to the point of being slightly clipped, but every sentence carries information.

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 mutation with no output schema, the definition covers what the tool does, what it affects, what persists, and the terminal-state behavior. The return value is only named ('Returns the job') rather than described, which is a minor gap given there is no output schema to fall back on.

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?

There is a single parameter with 100% schema coverage, and the schema already says the job id comes from render or jobs. The description adds nothing about the id's format, where to obtain it beyond what the schema states, or what happens with an invalid id, so baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Stop a background render job') and immediately scopes it with the qualifier '(render with background: true)', so an agent knows this applies only to background renders and not to the render tool itself. That qualifier is what separates it from the sibling render/jobs tools.

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?

The parenthetical identifies the exact class of job this applies to, and 'A job that has ended stays as it was' tells the agent that calling it on a finished job is a harmless no-op. It stops short of an explicit 'do not use for foreground renders' exclusion or a full alternative-routing sentence, but 'jobs lists them' does point at the sibling that enumerates jobs.

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

Deploy Server

Other Tools