Skip to main content
Glama

stop_run

Destructive

Request that an existing run stop. Returns its observed status and stopResult (submitted, rejected, unconfirmed, or alreadyTerminal). Use get_run to verify whether the run stopped. Unknown is terminal. Verify what happened before deciding whether to run again, and never auto-retry unknown or RESULT_UNKNOWN. Errors can include NOT_FOUND, BUSY (retryable), SESSION_REQUIRED, or UNAUTHORIZED.

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": "stop_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
run_idYesThe id returned by run_automation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and readOnlyHint=false, so the safety profile is known; the description adds genuine value on top by enumerating stopResult outcomes (submitted, rejected, unconfirmed, alreadyTerminal) and error classes (NOT_FOUND, BUSY, SESSION_REQUIRED, UNAUTHORIZED). What it omits is whether stopping is reversible, what happens to partial work, or the auth/session expectations behind SESSION_REQUIRED. It is strong supplementary context but does not go far beyond the annotation-plus-error-list level.

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?

The core action and verification path are front-loaded and nearly every sentence carries operational weight. A few fragments ("Unknown is terminal") are compressed to the point of ambiguity about which field is being described, costing some clarity.

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?

With no output schema, the description steps in to name the return fields and the possible status values, and it covers the error surface an agent must branch on. For a one-parameter destructive tool, nothing essential to calling it correctly is missing.

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?

Only one parameter (run_id) at 100% schema description coverage, so the schema already carries its meaning ("The id returned by run_automation"). The description adds no further detail about the identifier's format or source, which is acceptable at this coverage level but earns only the baseline.

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?

States a specific verb and resource ("Request that an existing run stop") plus the returned artifact (observed status and stopResult). It also names the sibling get_run for verification, so an agent can separate this mutation from the read-only inspection path without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Gives explicit follow-up guidance ("Use get_run to verify whether the run stopped") and explicit exclusions ("never auto-retry unknown or RESULT_UNKNOWN"), plus the condition that makes BUSY retryable. This is precisely the when/when-not information an agent needs for a destructive call.

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