Skip to main content
Glama

terminate_session

End an active session and close its bilateral communication channel by specifying the session ID.

Instructions

Terminate an active session and close its bilateral communication channel.

Input Schema

NameRequiredDescriptionDefault
session_idYesID of the session to terminate

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description must disclose the behavioral profile. It states that the session is terminated and its communication channel is closed, but it does not say whether termination is irreversible, what permissions are required, or what happens to session data and connected agents.

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?

The description is a single efficient sentence. The core action and its immediate effect are front-loaded with no redundant text.

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 simple one-parameter tool with full schema coverage and no output schema, the description covers the basic action and effect. However, because it is a destructive session-lifecycle operation with no annotations, it should say more about irreversibility and operational consequences.

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?

The schema has one required parameter with 100% description coverage, so the parameter's meaning is already clear from the schema. The description does not add any additional semantics for session_id beyond identifying the target session.

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 uses a specific verb and resource: 'Terminate an active session.' It also states the effect of closing the bilateral communication channel, which clarifies scope beyond the name. It does not explicitly differentiate from siblings such as pause_session, resume_session, or kill_all_sessions.

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?

The phrase 'active session' implies when termination applies, but there is no explicit guidance on when to use this instead of pause_session, kill_all_sessions, or terminate_agent. No prerequisites, exclusions, or alternative routing are provided.

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