Skip to main content
Glama

Cancel a Slaide job

cancel_job
DestructiveIdempotent

Use this only when the user asks you to stop a running Slaide job, or when they want to start something different on the same document and the current run is in the way. Pages Slaide already wrote are kept and the unused run reservation is released — but the run does not resume, so the document may be left half-finished. A job that already finished is returned unchanged.

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_idYesThe `job_id` of the job to stop, as returned by create_document, update_document or export_document.

Output Schema

NameRequiredDescriptionDefault
job_idYesThe job that was asked to stop.
statusYesState of the job after this call: cancelled when a running job was stopped, otherwise its unchanged state.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/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; the description goes beyond that by explaining what survives (pages already written), what is freed (unused run reservation), and what does not happen (the run does not resume), which is the real consequence of a destructive cancel. It could add a note on authorization or how long cancellation takes to take effect, but the effect profile is well disclosed.

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?

Three sentences, front-loaded with the usage gate, then consequences, then the edge case. No sentence repeats the title or annotations, and the 'half-finished' warning is placed where it will be read before invocation.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

A one-parameter destructive tool with an output schema does not need return-value documentation, so the description's coverage of triggers, side effects, and the already-finished case is sufficient for correct invocation.

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% and the single job_id parameter is documented in the schema as coming from create_document, update_document, or export_document. The description adds no further meaning about the identifier, so the baseline of 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 — stopping a running Slaide job — and immediately frames the two situations that call for it. There is no ambiguity about what the tool acts on versus read-only siblings like get_job.

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?

Opens with an explicit 'Use this only when...' gate covering two concrete triggers: the user asking to stop a run, or a new run needing the same document. It also covers the no-op case where the job already finished, so the agent knows when cancellation has no effect.

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