Skip to main content
Glama

memory_handoff_capture

Idempotent

Persists an immutable, idempotent handoff checkpoint capturing completed work, decisions, and next steps so agents can resume tasks; retrying an identical request returns the original receipt.

Instructions

Persist one immutable scoped handoff capture.

Retrying the identical request returns the original receipt with created=false and changes no bytes; a different payload at the same scope/capture_id conflicts. Record data is complete; soft warnings never truncate it.

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": {
      "capture_id": "<capture_id>",
      "work": "<work>"
    },
    "name": "memory_handoff_capture"
  }
}

Input Schema

NameRequiredDescriptionDefault
workYeswhat was done, verbatim and complete
eventNocapture event kindexplicit
linksNoverbatim free-text entries, never truncated
sourceNoapi
task_keyNotask key, only with a project (default: $MNEMOSYNE_TASK_KEY)
decisionsNoverbatim free-text entries, never truncated
next_stepNo
capture_idYesclient-supplied checkpoint identity
open_itemsNoverbatim free-text entries, never truncated
session_idNo
project_keyNoproject key (default: $MNEMOSYNE_PROJECT_KEY)
open_questionsNoverbatim free-text entries, never truncated

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare idempotentHint=true, destructiveHint=false and readOnlyHint=false, so safety is covered; the description still adds real value by specifying the exact retry contract (original receipt, created=false, no bytes changed) and the conflicting-payload-at-same-capture_id failure mode. The final sentence about soft warnings never truncating record data clarifies that partial success is not a data-loss risk. It stops short of explaining what 'scope' comprises or any auth/limit constraints.

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?

Three tight sentences, front-loaded with the core action, then retry/conflict semantics, then a data-completeness guarantee. Every sentence carries distinct information and nothing is repeated from the annotations or schema.

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?

An output schema exists, so the receipt shape need not be described, and the description correctly focuses on immutability, retry identity, and conflict behavior. With 12 parameters at 75% coverage and no explanation of what a scope is composed of, a small gap remains, but nothing required to invoke the tool correctly is missing.

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 coverage is 75%, so most of the 12 parameters are already documented in-schema, and the description only reinforces capture_id as the identity key and introduces the notion of scope. It adds no format or defaulting detail beyond what the schema states (for example, the env-var defaults for project_key/task_key are only in the schema). A baseline 3 fits.

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

Purpose4/5

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

"Persist one immutable scoped handoff capture" gives a specific verb (persist) and resource (handoff capture) plus two defining traits, immutability and scoping. It never names a sibling, so the agent cannot tell from the text alone whether memory_remember or memory_handoff_fold is the better destination, but the operation itself is unambiguous.

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 description gives no when-to-use guidance, no prerequisites, and no alternatives among the many sibling handoff/memory tools. The agent must infer from the name alone that this is the write-side counterpart to memory_handoff_read and distinct from memory_remember.

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