Skip to main content
Glama

Blitframe

Cancel render

cancel_render
DestructiveIdempotent

Cancel a queued or running render. A queued render comes back cancelled at once. A running render comes back still rendering with cancelRequested true, nothing refunded yet, and turns cancelled, with its refund and a render.cancelled webhook, once its render stops; call get_render with waitSeconds to see it. Its render seconds are refunded unless the balance has been reset since it was queued or it is an HLS render that already started streaming; refundedSeconds shows what came back. A render already cancelled comes back as it is; one that already succeeded or failed cannot be cancelled (render_finished). The answer leaves out the render's replacements.

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": {
      "renderId": "<renderId>"
    },
    "name": "cancel_render"
  }
}

Input Schema

NameRequiredDescriptionDefault
renderIdYesRender id, from render or list_renders.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations declare a destructive, idempotent, non-read-only mutation, and the description adds far more depth than that: the immediate-cancel versus cancelRequested-plus-webhook semantics, the exact refund rules and their two exceptions (balance reset, HLS already streaming), and how refundedSeconds reports the result. The error path render_finished and the no-op behavior for already-cancelled renders round out the mutation's side effects.

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?

It is front-loaded with the core action, and each subsequent sentence covers one distinct behavior: queued case, running case, refund rules, error cases, and the omitted replacements field. It is dense and long for a single-parameter tool, but no sentence is filler; only the slightly cryptic closing note about replacements could be tightened.

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?

For a destructive one-parameter mutation with no output schema, the description covers everything an agent needs: synchronous versus deferred completion, how to poll, what gets refunded and when it doesn't, and which states cannot be cancelled. Nothing essential about invoking or interpreting the call is left out.

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

Parameters5/5

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

There is one required parameter at 100% schema coverage, so the schema already documents the UUID format and the source of the render id, which sets the baseline at 4. The description's state discussion clarifies which renders produce meaningful results for that id, adding only marginal extra meaning, so this sits at the baseline-plus level.

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?

The opening sentence states a specific verb plus resource and scope: cancelling a queued *or* running render. It makes the tool's behavior distinguishable from batch siblings like cancel_renders or cancel_variation_batch by describing the single-render state machine, but it never names an alternative tool for comparison.

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?

Usage context is clear: call this for a render that is queued or running, and if it is running, follow up with get_render plus waitSeconds to observe the transition. It also flags exclusions — succeeded or failed renders cannot be cancelled, and already-cancelled ones are no-ops. What is missing is an explicit pointer to the sibling batch tool for multi-render cancellation.

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