Skip to main content
Glama

memento_session

Manage persistent AI agent sessions by beginning, resuming, handing off, checking status, or listing saved sessions so work continues across context boundaries.

Instructions

Manage Memento sessions. Actions: begin, resume, handoff, status, list.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "action": "<action>"
    },
    "name": "memento_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
actionYesAction to perform.
reasonNoReason for handoff checkpoint.
losslessNoLossless handoff/resume (default true) — include all L1/L2/L3, full tool-call replay, KG, decisions. Set false for a compact summary.
session_idNoSession ID for resume.
status_filterNoFilter sessions by status.
workspace_rootNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.2.2
  2. Removedv1.2.1
  3. First observedv0.3.1

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden and delivers almost nothing: it does not say that begin/handoff create or mutate session state, that handoff writes a checkpoint, or that lossless=true (the default) captures L1/L2/L3, KG, and full tool-call replay at real cost. No mention of permissions, size/expense, or error behavior for a 5-action dispatcher.

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 short sentences, front-loaded with the resource and followed immediately by the action inventory; zero filler. The brevity is efficient in structure, though it crosses into under-specification on substance.

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

Completeness2/5

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

This is a 7-parameter, 5-mode dispatcher with no annotations and no output schema, and the description explains none of the modes or their outcomes. With the schema covering only 71% of parameters and the unlabeled workspace_root, an agent cannot reliably pick an action or predict its effect from this definition.

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 71% and the schema itself documents lossless, session_id, reason, and status_filter in useful detail. The description adds no parameter meaning at all, so the baseline 3 applies — the schema is doing the work, not the prose.

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

Purpose3/5

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

"Manage Memento sessions" gives a verb and a resource, and the action list names the five callable modes. But it never says what begin, resume, handoff, status, or list actually do, nor how this differs from siblings like memento_remember or memento_compact. An agent knows the domain but must infer the operations.

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

Usage Guidelines2/5

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

The five action names hint at intent but there is no guidance on when to choose begin vs resume, no prerequisites (e.g., session_id needed for resume), and no mention of alternatives among the many memento_* siblings. All selection logic is left to inference from the enum.

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