Skip to main content
Glama

Stop a live session

stop_session

Asks the Nod to leave its room now, waits a few seconds for it to go, and returns the final state and cost.

Input Schema

NameRequiredDescriptionDefault
idYes

Output Schema

NameRequiredDescriptionDefault
stateYes
messageYes
end_reasonYes
session_idYes
charged_micro_usdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and closed-world scope, so the safety profile is covered. The description usefully adds that the call blocks for a few seconds waiting for graceful shutdown and returns final state and cost — real behavioral value. It omits failure modes such as stopping an already-ended session and whether the wait can time out.

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 sentence that front-loads the action, then the waiting behavior, then the return. Every clause carries information and there is no filler.

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?

An output schema exists, so return values need no explanation, and annotations cover the safety hints. Still, for a state-mutating lifecycle call the agent lacks the target-id semantics and error/idempotency behavior, leaving it slightly under-specified.

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% and the description never mentions the single required parameter. Critically, it is ambiguous whether 'id' is a session id or a Nod id, and the description's focus on 'the Nod' actively muddies that reading. With one undocumented parameter, the description does not compensate for the schema gap.

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 states a specific action on a specific resource: making a Nod leave its room, i.e. terminating a live session. It is clearly distinct from start_session without needing to name it, though it never explicitly routes the agent away from get_session when the intent is only to inspect state.

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 only implied by the word 'now' — the agent can infer this is the terminal action on a session already running. There is no guidance on when to prefer get_session, what happens if the session has already ended, or whether repeated calls are safe.

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