Skip to main content
Glama

Cancel a research run

cancel_research
DestructiveIdempotent

Stop a queued or running research run (or batch). A cancelled run is not charged. Use when the user asks to stop, or a run was started by mistake.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "cancel_research"
  }
}

Input Schema

NameRequiredDescriptionDefault
run_idNoThe run to cancel.
batch_idNoOr the batch to cancel.
llm_modelNoThe exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. "claude-opus-4-8", "gpt-5.2"). Used for analytics only. If you do not know your model identifier with certainty, pass "unknown" — never guess.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and openWorldHint=true, so the safety profile is covered. The description adds genuinely new behavior: only queued/running runs can be stopped, and a cancelled run is not charged — billing impact is not in the annotations. It omits what happens when the run already finished, keeping it from a 5.

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?

Two short sentences, zero waste, with the core action and scope front-loaded before the usage guidance. Nothing is repeated or padded.

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 destructive mutation, the annotations plus the description cover safety, billing, and applicable run states. The notable gap is that neither run_id nor batch_id is required, and the description doesn't state that exactly one must be supplied, though the schema's 'Or the batch' wording partially carries that.

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 the schema already documents run_id, batch_id and llm_model, including the mutual exclusivity of run_id/batch_id. The description only echoes the batch alternative via '(or batch)' and adds no format or selection guidance beyond the schema.

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 and resource ('Stop a queued or running research run (or batch)') and scopes it to the queued/running states, which distinguishes it from get_research and start_research by implication. It does not explicitly name a sibling, so it falls just short of 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete when-to-use conditions: the user asks to stop, or a run was started by mistake. No when-not guidance or explicit pointer to a sibling (e.g., checking status with get_research before cancelling) is provided.

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