Skip to main content
Glama

Cancel Job

cancel_job
Idempotent

Cancel a running async job (verify / preview / brand-kit-extract) returned by an enqueue call — abort a mis-priced job instead of waiting out its TTL. For box-backed jobs the warm box is reaped best-effort; cancel never meters. No-op-reject (422) if already terminal.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
jobIdYesjobId (path).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Adds meaningful behavior beyond annotations: the 422 no-op-reject on already-terminal jobs, best-effort box reaping, and 'cancel never meters' (no billing impact). This is rich context that isn't derivable from the annotations. Annotations already cover idempotency and non-destructiveness.

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?

Two dense sentences, front-loaded with the core action and scope. The parenthetical job-type list and the TTL/metering details are useful, though the sentence is somewhat packed. No filler.

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-param mutation tool with no output schema, the description covers the why, the scope, the billing behavior, and the terminal-state edge case. It omits auth/permission requirements and the response shape, but is largely complete.

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% (jobId is documented). The description adds that the jobId is the one 'returned by an enqueue call', giving provenance, but no format details. Baseline 3 is appropriate when the schema carries the parameter documentation.

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+resource ('Cancel a running async job') and enumerates the job types it applies to (verify / preview / brand-kit-extract). It distinguishes itself from siblings like cancel_compose/cancel_render/cancel_export by targeting the generic async job returned from an enqueue call, and from wait_job.

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 motivating scenario ('abort a mis-priced job instead of waiting out its TTL'), which implicitly contrasts with wait_job. However it doesn't explicitly name wait_job as the alternative or state when not to cancel (e.g., terminal jobs), leaving some inference.

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.