Skip to main content
Glama
Pseudogiant-xr

PseudoLife-MCP

Official

memory_episode_end

End the active sub-episode and return to its parent context. Use the session handle to close only your current branch, keeping the session root open.

Instructions

Close the current open sub-episode and pop back to its parent.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
episodeNoYour session handle — pops only within your own session's subtree; the session root is never closed.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.15.0
    • addedInput schema / properties / episode
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Your session handle — pops only within your own session's subtree; the session root is never closed.",
      +  "title": "Episode"
      +}
  2. First observedv0.11.0

TDQS

A4.2/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 of behavioral disclosure. It states the state transition ('closes', 'pops') and the scope limitation ('only within your own session's subtree; the session root is never closed'). It does not specify behavior when no sub-episode is open, but the core mutating behavior is clearly disclosed.

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 one front-loaded sentence that states the action, target, and result with no filler. The important constraint is placed in the parameter schema, which is the right location for it. Every word earns its place.

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 one-parameter tool with a well-documented schema and an output schema, the description covers the normal invocation scenario and the key limitation. It does not spell out edge cases like calling with no open sub-episode, but the root-never-closed note partially covers boundary behavior. Overall, it is complete enough for an agent to select and use the tool correctly in typical cases.

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?

The input schema has 100% description coverage and explains the single optional parameter well, including that 'episode' acts as a session handle and that the root is never closed. The tool description itself does not add parameter-level meaning beyond the schema, but it does not need to because the schema already handles it. Baseline 3 is appropriate here.

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 names a specific action ('Close'), a specific resource ('current open sub-episode'), and the outcome ('pop back to its parent'). This clearly differentiates it from sibling tools like memory_episode_start and memory_episode_summary. There is no ambiguity about what the tool does.

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?

The description states a clear condition for use: a sub-episode is currently open and should be closed while returning to its parent. The parameter description adds a useful exclusion by noting that the session root is never closed and that only the caller's own session subtree is affected. It does not explicitly name alternative tools, but the start/end relationship is obvious from the sibling list.

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