Skip to main content
Glama

mcp_engram_session_end

Finalizes the conversation by storing decisions, reasoning traces, and changes into a tamper-evident chain, preserving the session's work for future agents without loss.

Instructions

MANDATORY (now with reasoning trace support): Call at end of every conversation/task. Commits the session as ZEDOS_EPISODIC and extracts key reasoning traces (decision points, justifications, forks) into structured trace segments. These become part of the serial, tamper-evident chain for the agent self-model. Flat summaries are still accepted but strongly discouraged. Automatically refreshes helper:session_hydration_cache, hot-promotes continuity artifacts, and mints compression_handoff_* manifest. CONSEQUENCE OF SKIPPING: The session's work + reasoning trajectory is lost to future agents. WHAT TO INCLUDE IN SUMMARY: decisions made, problems solved, files changed, open questions, next steps. Optional COMPRESS: lines for 0x10 functor minting later. 2026-06 Ritual Evolution: for meta arcs ensure tiles + current_meta_arc promoted/updated for bundles (per helper:meta_work_escalation_v1).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
minimalNoIf true, thin closure: 1-line summary + auto boundary trace + handoff only (no compression ritual). Preferred for fast fix loops.
prepare_compressionNoIf true (default when minimal=false), run full compression handoff: hydration cache + hot promote + compression_handoff_* manifest. Ignored when minimal=true.
summaryYesAgent's summary of the session
Behavior4/5

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

Despite no annotations, the description richly discloses behaviors: commits the session, extracts reasoning traces, refreshes caches, hot-promotes artifacts, mints manifests, and warns of data loss. It also notes that flat summaries are accepted but discouraged. Some jargon (e.g., '0x10 functor minting') is opaque but does not detract from overall transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is dense with information but could be more concise. It front-loads the mandatory call and reasoning trace support, but includes cryptic version-specific notes (e.g., '2026-06 Ritual Evolution') that may be unnecessary. Every sentence adds value, but some jargon reduces clarity.

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 output schema and no annotations, the description covers purpose, usage, behavioral traits, and parameter semantics thoroughly. It explains side effects and consequences of skipping. However, it assumes domain knowledge of terms like 'ZEDOS_EPISODIC' and does not describe the return value, which is a minor gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with parameter descriptions. The description adds value by explaining the purpose of 'minimal' (thin closure vs full compression), the 'prepare_compression' behavior, and detailed guidance for the 'summary' field content beyond the schema. This helps the agent choose appropriate parameter values.

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 tool's purpose: 'Call at end of every conversation/task. Commits the session as ZEDOS_EPISODIC and extracts key reasoning traces...' It specifies the resource (session) and action (end/commit), and distinguishes from siblings by emphasizing its mandatory nature and reasoning trace extraction, contrasting with other engram tools.

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

Usage Guidelines4/5

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

Explicitly states when to use: 'MANDATORY... Call at end of every conversation/task.' Provides content guidelines for the summary field and warns of consequences of skipping. Does not explicitly mention alternatives or when not to use, but the mandatory framing and discouragement of flat summaries indirectly guide usage.

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/staticroostermedia-arch/engram'

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