Skip to main content
Glama
templetwo
by templetwo

close_session

Records key insights, surprises, and handoff to close the current session. Replaces three separate actions, lowering friction and advancing the spiral phase.

Instructions

Close the current session with integration. One call replaces three (record_insight + spiral_reflect + handoff). This is the ceremony-killer: lowering friction on the reflection ritual until it's cheaper to do than to skip. Also advances the spiral phase forward one step — side-effect that keeps the phase counter moving even on tired sessions. NOTE: close_session does NOT rotate the session_id. The session_id remains the same on the next boot. To start a genuinely new session with a fresh session_id, call spiral_inherit explicitly after closing.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
what_i_learnedYesThe main thing from this session worth carrying forward.
what_surprised_meNoWhat I didn't expect. Surprises are where the probability field moved.
what_to_pick_upNoThe handoff. Intent for the next instance. Leave empty if nothing is pending.
threadNoWhich line of work this closes. Used for the handoff note.general
source_instanceNoWhich instance is closing (e.g. 'claude-code-mac-studio').
Behavior5/5

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

Discloses key behaviors: replaces three calls, advances spiral phase, does not rotate session_id. Since no annotations, description carries full burden and does so thoroughly.

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?

Four sentences, each adding essential info: purpose, benefit, side-effect, critical note. Front-loaded and no fluff.

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

Completeness5/5

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

Covers purpose, behavior, alternatives, and side-effects. No output schema needed as return is implied. Comprehensive for its complexity.

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 has 100% coverage with clear descriptions. Tool description adds minimal extra meaning, mainly reinforcing the reflection theme. Baseline 3 is appropriate as schema suffices.

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?

Description clearly states verb 'close', resource 'session', and explains it replaces three other tools (record_insight, spiral_reflect, handoff), distinguishing from siblings. It is specific and actionable.

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?

Explicitly states when to use (closing session) and when not (does not rotate session ID), and directs to spiral_inherit for fresh session. Also mentions it reduces ceremony, providing context for use.

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/templetwo/sovereign-stack'

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