Skip to main content
Glama

Cancel Generation Job

generation_jobs_cancel
DestructiveIdempotent

Request cancellation of the identified queued or running generation. Work already performed can consume credits; cancellation does not establish a refund.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
jobIdYesJob ID returned by any generation_*_create tool.
workspaceIdNoOptional workspace ID. Defaults to the user's default workspace. UUID string.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
jobYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the safety profile is covered. The description adds genuinely useful context beyond them: 'Request cancellation' signals the action is asynchronous rather than immediate, and the credit/no-refund consequence is a material behavioral fact not captured anywhere in the structured fields.

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?

Two sentences, action front-loaded followed by its financial consequence. Every clause earns its place with no redundancy.

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?

An output schema exists, so return values need not be explained, and annotations carry the safety profile. The description covers the key agent-facing concern (irreversible credit spend). It stops short of explaining what happens after the request (immediate vs eventual termination) or how to confirm success, but this is a minor gap.

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%, with jobId clearly documented as coming from a generation_*_create tool and workspaceId explained as defaulting to the user's default workspace. The description adds no syntax, format, or edge-case detail beyond what the schema already provides, so baseline 3 applies.

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?

The description states a specific verb and resource ('Request cancellation of the identified queued or running generation') and scopes it to queued/running jobs. An agent can immediately tell this apart from the read-oriented sibling generation_jobs_get without opening either schema.

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 by the 'queued or running' qualifier, which hints at the applicable job states, but the description never says when to prefer this over alternatives or whether status should be checked first (e.g., generation_jobs_get). No when-not guidance is offered.

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.

Resources