Skip to main content
Glama

stop

Destructive

Terminates a session's owned process group or detaches an external session, with optional cleanup of driver-owned evidence.

Instructions

Stop owned process group or detach external session; optionally remove only driver-owned evidence.

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": {
      "session_id": "<session_id>"
    },
    "name": "stop"
  }
}

Input Schema

NameRequiredDescriptionDefault
session_idYes
cleanup_evidenceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is disclosed structurally. The description adds real value by scoping the destruction ('only driver-owned evidence'), which reassures the agent about blast radius, but it says nothing about whether the stop is graceful or forced, or what happens to the session record.

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?

A single front-loaded sentence with no filler; the two operating modes and the optional cleanup are packed in efficiently. The density comes at some cost to readability of 'owned process group,' but nothing is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 2-parameter mutation with annotations and no output schema, the essentials are present but not complete: the agent still lacks guidance on session_id semantics, failure modes for unknown or unowned sessions, and what state remains after the call.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the full burden. It partially explains cleanup_evidence via 'optionally remove only driver-owned evidence,' but session_id is never described, nor is how ownership is determined or what format the identifier takes.

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?

The description gives two clear verbs (stop, detach) tied to two resource types (owned process group, external session), which is meaningfully more specific than the bare name 'stop'. It does not name any sibling to differentiate from, but the ownership distinction makes the action's scope legible.

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?

Usage is implied by the ownership clause: stop when the session is owned, detach when it is external. That is reasonable context, but there is no explicit when-not guidance and no named alternative such as list_sessions or status for checking ownership first.

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