Skip to main content
Glama

kill_all_sessions

Emergency stop and terminate all active sessions, or only sessions under a specified parent, to halt runaway agent work.

Instructions

Emergency stop and terminate all active sessions (or all children of a parent session).

Input Schema

NameRequiredDescriptionDefault
parent_session_idNoIf specified, only terminate sessions belonging to this parent

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

B3.4/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, and it does disclose the most important trait: the blast radius ('all active sessions'). However, it says nothing about irreversibility, whether the caller's own session or in-flight work is destroyed, or whether any confirmation/auth is required for a mass-kill operation.

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 front-loaded sentence with the destructive verb and scope first and the parent-scoping qualifier in parentheses. Nothing is wasted and nothing important is buried.

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?

This is a destructive, annotation-free, output-schema-free bulk operation, so the description must do more. It omits what is returned (e.g., count of terminated sessions), what happens to partial failures, and whether the action is recoverable — all material for an agent deciding to invoke a kill-all.

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?

There is only one optional parameter and schema coverage is 100%, so the schema already documents 'parent_session_id' fully. The description restates the same scoping semantics without adding format, edge cases, or behavior for an invalid parent id, so baseline 3 applies.

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 names a specific verb and resource ('stop and terminate all active sessions') and clarifies the scoping variant (children of a parent session). It is clearly distinguishable from a single-session tool by the word 'all', though it never names the sibling 'terminate_session' that an agent would otherwise compare against.

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?

'Emergency stop' signals the trigger context, implying this is for urgent/bulk shutdown rather than routine cleanup. But there is no explicit when-not-to-use guidance and no routing to alternatives such as 'terminate_session' for a single session or 'pause_session' for a reversible stop, leaving the agent to infer the boundary.

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