Skip to main content
Glama

Stop a run

cancel_run
DestructiveIdempotent

Stops a lead search or employee search run. Leads already delivered stay available and charged; nothing more is fetched or charged. Safe to call twice. Free.

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": {
      "run_id": "<run_id>"
    },
    "name": "cancel_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
run_idYes

Output Schema

NameRequiredDescriptionDefault
errorNo
run_idNo
statusNo

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?

Adds substantial context beyond the annotations: delivered leads remain available and charged, no further fetching or charging occurs, and repeat calls are safe — this usefully explains what the destructiveHint actually means in practice (partial, not full data loss). Missing is behavior for an unknown or already-finished run_id, and whether 'Free' covers retries on an already-stopped run.

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 short sentences, front-loaded with the action, then consequences, then safety and cost. Every sentence carries information an agent would otherwise have to guess.

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?

With an output schema present and destructive/idempotent hints already given, the definition covers the remaining agent-relevant facts: retention of prior results, billing behavior, and idempotency. The only meaningful gap is the undocumented run_id source and edge-case behavior.

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 0% for the single run_id parameter, so the definition would ideally explain its origin or format. The description defines the concept of a 'run' (lead search or employee search) which gives semantic grounding, but never mentions run_id, where to obtain it, or its 1-64 character constraint.

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 ('Stops a lead search or employee search run') and narrows the scope to run objects, which clearly separates it from retrieval tools like get_run or get_results. It does not explicitly name a sibling to contrast with, so it lands just short of the top tier.

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 clear operating context: it is used to stop in-progress runs and is safe to call repeatedly, implying no need for existence checks before retrying. It stops short of stating exclusions, e.g. whether it applies to already-completed or failed runs.

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