Skip to main content
Glama

cancel_run

DestructiveIdempotent

Stop a run that is pending, running, or waiting for input. The run is finalized as failed with 'Cancelled by the caller'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
run_idYesA run id (trun_...).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
objectYes
resultNo
reusedNo
statusYes
chat_idNo
summaryNo
task_idYes
task_nameNo
created_atYes
started_atNo
completed_atNo
error_messageNo
credits_consumedNo
pending_approval_idsNo

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false. The description adds context by specifying that the run is 'finalized as failed with a custom message', which is not captured in annotations. It also implicitly indicates that cancellation changes the run's terminal state, adding value beyond the annotations.

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?

The description is two sentences, front-loads the action, and contains no redundant words. It efficiently conveys the purpose and the result with minimal length.

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 single-parameter tool with an output schema and annotations covering destructive and idempotent behavior, the description covers the essential conditions (which states are cancellable) and the outcome. It does not elaborate on error cases or prerequisites, but such detail is not critical given the tool's simplicity.

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 parameter run_id is already documented with its type and pattern (trun_...). The description does not add any extra semantic detail about the parameter, so the baseline score 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?

The description uses a specific verb ('stop') and resource ('a run') and clearly enumerates the applicable states (pending, running, waiting for input). It also states the outcome (finalized as failed with 'Cancelled by the caller'), which distinguishes it from sibling tools like get_run or wait_for_run.

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 description gives clear context on when the tool is applicable by listing the run states it can stop. It does not explicitly mention exclusions or alternatives, but the sibling set makes the use case obvious, and the stated states imply that already-completed runs are out of scope.

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.

TDQS

A4/5.0
Disambiguation4/5

The direct API tools (api_search/api_execute) are clearly distinct from the agent workflow tools. The main ambiguity is between ask_crevio and start_chat, since both initiate agent runs, though one waits and the other does not.

Naming Consistency4/5

Most tools follow a clear verb_noun pattern (list_runs, get_run, send_message, cancel_run). The api_ prefix on api_execute/api_search and the lowercase whoami are minor deviations from an otherwise consistent convention.

Tool Count5/5

14 tools is well-sized for a server that combines direct REST API access with an agent run/chat lifecycle. Each tool has a distinct role and none feel redundant or unnecessary.

Completeness5/5

The REST surface is fully covered through api_search and api_execute, and the agent lifecycle is complete: start, continue, ask, wait, list, approve, cancel, and inspect runs/chats/messages. No critical operation appears to be missing.

Resources