Skip to main content
Glama

end_session

Closes a task session and records a summary of delivered work and remaining limitations for clear handoff.

Instructions

End a session. summary: what was delivered and any remaining limitations.

Input Schema

NameRequiredDescriptionDefault
summaryNo
session_idYesThe session_id start_session returned

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.9/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 carry the behavioral burden. It mentions the summary content but does not disclose what ending a session actually does, whether it is irreversible, what happens to unfinished work, or what permissions are required.

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?

The definition is very short and front-loaded, with no wasted text. The terse 'summary:' phrasing is efficient, though it leaves important behavioral details unstated rather than clarifying them.

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?

For a lifecycle mutation tool with no annotations and no output schema, the description is incomplete. It omits session-ending effects, prerequisites, and how the summary parameter is used operationally.

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?

Schema coverage is 50%, with session_id already documented in the schema. The description adds useful meaning for the otherwise undocumented summary parameter by specifying it should cover delivered work and remaining limitations.

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 clear verb and resource: 'End a session.' An agent can distinguish this from start_session by the verb, though the description does not explicitly name sibling alternatives or lifecycle context.

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 only usage guidance is implied by the word 'End' and the optional summary field. It does not say when ending is appropriate, whether prior steps must be completed, or how it relates to siblings such as complete_step or start_session.

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