Skip to main content
Glama

Cancel job

cancel_job
Destructive

Cancel a job, only when your user asks to stop it. A website action it already sent may have happened, and its write_status says so. Don't cancel a job because a result or build.example_result arrived: a build that shows its example result is still testing and publishing its tool, and a cancel discards it. Keep following it until a reply carries stop. Don't cancel a run whose maintenance.status is repairing: a cancel ends the task without a result.

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_id": "<job_id>"
    },
    "name": "cancel_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
intentNoDescribe the intended use case in one sentence: what this call should do and why, such as "Check a store's opening hours to answer when it opens today". Describe the task, not the person: leave out names, contact details, account numbers and anything used to sign in. Pomerado uses it to improve its tools. Optional, but recommended: please include it on every call.
job_idYesa job ID: job_ and 32 lowercase hex digits

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?

Annotations already declare destructiveHint=true, idempotentHint=false and openWorldHint=true, so the safety profile is known; the description adds genuinely new behavior: an already-sent website action may still have happened, and the job's write_status reflects it, and cancelling a publishing build discards the tool. It does not say what state the job ends in or whether the result is retrievable afterward, which keeps it from a 5.

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?

Front-loaded with the action and its precondition, then the two failure modes in order of importance. Sentences are dense but each carries a distinct rule; the phrasing "A website action it already sent may have happened, and its write_status says so" is slightly compressed but not wasteful.

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 two-parameter destructive tool with no output schema, the description covers the decision criteria and the main irreversibility risk. It leans on job-state fields (write_status, maintenance.status) that the agent must already know from get_job, and it doesn't state the post-cancel state of the job, which is the only notable 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 description coverage is 100%: job_id's format and the optional intent field are fully documented in the schema. The description adds no syntax or constraint meaning 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.

Purpose4/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 immediately bounds the scope to the case where the user asks to stop it. It distinguishes the cancel action from the wait-and-poll behavior of its siblings by telling the agent to "Keep following it until a reply carries stop," though it never names a sibling tool explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit when (your user asks to stop it), two explicit when-nots (a result or build.example_result arrived; maintenance.status is repairing), and points to the alternative behavior (keep following until a reply carries stop). An agent can decide whether to call this without any 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.