Skip to main content
Glama

Cancel job

cancel_job
Destructive

cancel a queued or running job. cancellation is a request - poll check_job for the final state.

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": {
      "request_id": "<request_id>"
    },
    "name": "cancel_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
request_idYesthe job id returned by a run_endpoint call

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the description doesn't need to repeat that this mutates. Instead it adds genuinely new behavioral context: cancellation is asynchronous — a request, not a guaranteed terminal outcome — and the agent must poll check_job for the final state. That is exactly the kind of trait annotations cannot convey; it only lacks notes on idempotency or artifacts left behind by a cancelled job.

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 short sentences, front-loaded with the action and scoped result, with zero filler words. Nothing could be removed without losing meaning.

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 description covers the essential gap by explaining that the call returns only an acknowledgement and that state must be observed via check_job. It could go slightly further on error conditions or what happens to already-completed jobs, but nothing needed 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?

With a single parameter and 100% schema description coverage, the schema already explains that request_id is 'the job id returned by a run_endpoint call'. The description adds no format or sourcing detail beyond that, so the 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?

States a specific verb and resource (cancel a job) and narrows the scope to 'queued or running' jobs, which lets an agent distinguish it from siblings like check_job, forget_job, and list_jobs without opening any schema.

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 scope phrase 'queued or running' implicitly tells the agent when the tool applies, and the second sentence routes follow-up behavior to check_job. It stops short of stating exclusions explicitly (e.g. what happens if the job already finished, or that forget_job is the cleanup alternative), so it is clear context rather than a full when/when-not guide.

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