Skip to main content
Glama

cancel_job

Stop a running OCR job or delete a completed job’s results after human confirmation; pages already processed remain charged, so check job status afterward.

Instructions

Stop a running job, or delete the result of a finished one (DELETE /v1/jobs/{id}). You are asked to set human_confirmed=true only after the human agreed (the server cannot check it). Pages already read stay charged; check job_status afterwards.

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
job_idYesfrom submit_job
human_confirmedNotrue only after the human agreed to cancel

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does deliver real behavioral context: dual semantics (stop vs delete), the endpoint, a billing consequence ('pages already read stay charged'), and a post-condition check via job_status. It does not state whether the delete is irreversible, what permissions are needed, or what errors occur for already-finished or unknown jobs, which are notable gaps for an unannotated destructive tool.

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 endpoint, then the confirmation caveat, then the follow-up. Every sentence carries information, though 'Pages already read stay charged' is terse to the point of ambiguity about what is being charged.

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?

No output schema and no annotations, yet the description covers action semantics, the human-confirmation contract, cost consequences, and a verification step. Remaining gaps (irreversibility, failure modes) are moderate rather than fatal for a two-parameter tool.

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%, so both parameters are already documented, including the human_confirmed gate. The description adds only the nuance that the server cannot verify the flag — useful but marginal, since the schema already says 'true only after the human agreed to cancel'. 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 with both modes spelled out: stopping a running job versus deleting the result of a finished one, plus the underlying endpoint DELETE /v1/jobs/{id}. An agent can tell exactly what the call does without opening the 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 two operating modes imply when to use it, and the follow-up 'check job_status afterwards' points at the natural next step. It does not explicitly name alternatives (e.g. why not just let a job finish) or state when not to cancel, so it falls short of a full when/when-not/alternatives statement.

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