Skip to main content
Glama

StopScript

Stops a caller's script run by its handle or discards an ended script run to manage execution state.

Instructions

[read-only] Stops one of the caller's script runs by its handle, or discards a script run that has ended.

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": {
      "handle": "<handle>"
    },
    "name": "StopScript"
  }
}

Input Schema

NameRequiredDescriptionDefault
handleYesThe handle a script run was started with.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv26.5.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose the core effect (stop a live run, discard a finished one) and flags the operation as read-only, but it says nothing about behavior on an invalid, unknown, or already-stopped handle, whether the call is idempotent, or whether the stop is graceful or immediate.

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?

One front-loaded sentence with the read-only marker leading and the two supported states following the primary action. Nothing redundant and nothing buried.

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, no-output-schema tool with full schema coverage, the description covers purpose, scope, and the two run states adequately. The remaining gap is edge-case behavior on invalid or already-stopped handles, which is tolerable but not fully covered.

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% and the single handle parameter is already documented as 'the handle a script run was started with'. The description only echoes that the handle identifies the target run, adding no format, sourcing, or reuse detail beyond the schema, so the baseline 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?

States a specific verb pair (stops/discards) against a specific resource (a script run) and constrains scope to the caller's own runs. That scope plus the handle-based targeting makes it clearly distinct from RunScript and GetScriptRun without naming them.

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

Usage Guidelines3/5

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

The description implicitly covers two cases: terminating a live run and discarding one that has already ended, which tells the agent it can be called in either state. It does not say when not to use it or point to a sibling such as GetScriptRun to check status first, so guidance is implied rather than explicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools