Skip to main content
Glama

session_end

Save a session summary to record accomplishments, files changed, and lessons learned for persistent AI memory across coding tools.

Instructions

Save a session summary when you finish working. Records what was accomplished, files changed, and lesson count. The next session_start will show this summary as "Last session". Call this when ending a work session, before going idle, or before summarizing.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
instance_idYesUUID of the cache instance
summaryYesBrief summary of what was accomplished this session (2-3 sentences)
files_changedNoKey files changed this session (optional)
lessons_learnedNoNumber of new lessons stored this session (optional)
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses that this tool saves a summary for future reference, implying a write operation, but lacks details on permissions, error handling, or data persistence. It adds some context (e.g., the summary is used by 'session_start'), but doesn't fully cover behavioral traits like side effects or limitations.

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 front-loaded with the core purpose in the first sentence, followed by usage guidelines. Every sentence earns its place by clarifying when to call the tool and its relationship with 'session_start', with no redundant or verbose language, making it highly efficient.

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

Completeness4/5

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

Given no annotations and no output schema, the description does well by explaining the tool's purpose, usage, and connection to 'session_start'. However, it lacks details on return values or error conditions, which would be helpful for a write operation. It's mostly complete but has minor gaps in behavioral context.

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 description coverage is 100%, so the schema already documents all parameters thoroughly. The description mentions 'summary', 'files changed', and 'lesson count', which align with parameters but don't add meaningful semantics beyond what the schema provides. This meets the baseline for high schema coverage without extra value.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the specific action ('Save a session summary'), the resource ('session'), and the outcome ('Records what was accomplished, files changed, and lesson count'). It explicitly distinguishes this tool from its sibling 'session_start' by explaining the relationship between them, making the purpose distinct and well-defined.

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

Usage Guidelines5/5

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

The description provides explicit guidance on when to use this tool: 'when ending a work session, before going idle, or before summarizing.' It also clarifies the relationship with 'session_start' by noting that the summary will be shown as 'Last session' in the next start, offering clear context for usage versus alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cachly-dev/cachly-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server