Skip to main content
Glama
lokeshrana9999

claude-session-manager

session_stop

Stops or removes a queued or running Claude Code CLI session, applying graceful interrupt/terminate signals or forced termination when needed.

Instructions

Stop a run (graceful: SIGINT, then SIGTERM, then SIGKILL) or remove it from the queue.

Input Schema

NameRequiredDescriptionDefault
botYesYour bot name (attribution).
modeNograceful
reasonNo
run_idYes
cross_botNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does valuable work by spelling out the SIGINT→SIGTERM→SIGKILL escalation for graceful mode. However it says nothing about what force mode does, whether queue removal discards a pending run irrecoverably, what cross_bot implies for authorization, or whether the operation is reversible.

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?

A single dense sentence with the escalation detail parenthesized so it doesn't interrupt the main clause. Zero wasted words, and the primary action is front-loaded.

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

Completeness2/5

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

An output schema exists, so return values needn't be described, but for a five-parameter destructive operation with no annotations and 20% schema coverage, the description leaves too much unspecified — force mode, cross_bot semantics, and the fate of a removed queued run are all unaddressed.

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 only 20% — just `bot` is documented — and the description explains none of the other four parameters. It implies the meaning of mode=graceful via the signal sequence but never mentions the `force` enum value, `reason`, `cross_bot`, or what `run_id` refers to for a queued run.

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?

Names a specific verb and resource ("Stop a run ... or remove it from the queue") and even discloses the escalation sequence for graceful stops. It is clearly distinct from the session_* siblings (start/ack/status/list/tail/result/send/wait), none of which terminate anything, though it doesn't explicitly contrast itself with them.

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

Usage Guidelines2/5

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

There is no statement of when to use this versus alternatives, no prerequisites (e.g. does stopping a queued run differ from a running one?), and no guidance on when to choose mode=force over the default graceful path. The agent must infer the conditions from the enum alone.

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