Skip to main content
Glama

cancel_job

Cancels a queued or currently running narration job using its job ID, stopping audio generation and freeing resources.

Instructions

Cancela uma narração na fila ou em andamento.

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_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose the state scope that counts as cancellable (queued or in-progress), which is genuinely useful, but it says nothing about what happens to an already-finished job, whether cancellation is reversible, permissions, or what is returned.

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?

A single short sentence with no filler, and the action verb leads. It is efficient, though the brevity leaves the reader with no secondary detail to anchor behavior.

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

Completeness2/5

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

For a mutation tool with no annotations, no output schema, and an undocumented parameter, the description covers only the action and its target state. It omits error conditions, post-cancellation state, and result semantics that an agent needs before invoking a destructive operation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

There is one required parameter (job_id) with 0% schema description coverage, and the description never mentions it or explains how to obtain a valid job identifier or what form it takes. The only implicit signal is that the narration to cancel must be identified, which is not enough to compensate for the schema gap.

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+resource ('Cancela uma narração') and narrows the scope to jobs queued or in progress, so the agent knows exactly what target the tool acts on. It does not explicitly distinguish itself from siblings like job_status or wait_for_job, which keeps it from a 5.

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?

The phrase 'na fila ou em andamento' implies the usage condition (only meaningful for queued or running narrations) but gives no explicit when-to-use guidance, no prerequisites, and no pointer to alternatives such as job_status for checking state first.

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