Skip to main content
Glama

unimatrix_end_session

End a session by storing an extractive summary of its turns or transcript. The summary is tagged session-summary, stored as a semantic memory, encrypted, and queued for the Librarian to embed. Call this when a session ends.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "unimatrix_end_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
hintNoOptional hint stored with the summary.
turnsNoSession turns in order. Each item has role and content.
space_idNoOptional conversation Space to file the summary into.
transcriptNoFull session transcript. Used when turns are not provided.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden and does substantial work: it discloses the tag applied, the storage tier (semantic memory), encryption, and asynchronous embedding via the Librarian. Gaps remain around the zero-required-parameter case (what happens if neither turns nor transcript is supplied), idempotency/duplicate-session behavior, and any permission requirements.

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?

Two tight sentences with the core action front-loaded and the side effects grouped after it. The trailing 'Call this when a session ends' slightly restates the leading 'End a session', a small redundancy, but nothing else is wasted.

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?

For a four-parameter, zero-required mutation tool with no annotations and no output schema, the description covers what gets persisted and how it is processed. It stops short of describing the return value, which matters here since no output schema exists to fall back on, and it does not resolve the ambiguity of calling with no arguments at all.

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 all four parameters are already documented in the schema, establishing a baseline of 3. The description only restates the turns-or-transcript choice at a high level and adds no format, ordering, size-limit, or precedence detail beyond what the schema already says.

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 opens with a specific verb+resource pair: 'End a session by storing an extractive summary of its turns or transcript.' It also enumerates the downstream effects (tagged session-summary, stored as semantic memory, encrypted, queued for the Librarian to embed), which makes it clearly distinguishable from unimatrix_begin_session and unimatrix_session_status.

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?

'Call this when a session ends' gives an explicit trigger condition, which is more than most definitions offer. However, it gives no exclusions or alternatives — e.g., what to do if a session was never begun, or whether session_status should be checked first, or whether this is safe to call twice for the same session.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources