Skip to main content
Glama
JusticeUA

agent-handoff-memory

by JusticeUA

agent-handoff-memory

ci

Un servidor MCP que proporciona a varios agentes una memoria compartida y versionada, y un paquete de traspaso explícito, para que la siguiente sesión comience donde terminó la anterior en lugar de deducirlo de nuevo.

Los agentes pierden su contexto en el límite de la sesión. El parche habitual es volcar una transcripción en el prompt y esperar que la siguiente ejecución elija la frase correcta. Un paquete de traspaso es lo opuesto: un objeto corto y estructurado que indica qué se hizo, qué sigue, qué sigue sin aclarar y desde qué versiones de registros exactas comenzar, y el agente receptor obtiene esas versiones resueltas en la misma llamada, con una advertencia sobre aquellas que hayan cambiado desde entonces.

git clone https://github.com/JusticeUA/agent-handoff-memory.git
cd agent-handoff-memory && npm install
npm run demo

Esto ejecuta dos agentes en dos procesos contra un único archivo SQLite. Sin claves de API, sin servicios, sin paso de compilación nativa: node:sqlite es parte del entorno de ejecución.

Qué muestra la demo

Un agente explorador rastrea un tablón de empleo (simulado), escribe lo que encontró, corrige una de sus propias evaluaciones y realiza el traspaso. Un proceso ejecutor separado retoma el trabajo sin saber nada más:

--- 1. pick up whatever is waiting --------------------------------
  . packet h_1f4089bf from scout-agent: Two listings worth an application, one source caveat
  . next: Draft an application for listing/482 (supplier catalogue scrape, $900)
  . next: Draft an application for listing/553 (price monitor, $600)
  . open: Is the 60s backoff enough, or does the board keep a longer penalty window?
  . 4 pinned record versions arrived with the packet
  . stale: listing/553/assessment was pinned at v1, now at v2

--- 3. re-read anything the warning touched -----------------------
  . listing/553 v2 now says "maybe" (budget edited down to $400 and 17 more applicants arrived)
  . dropping listing/553 - acting on the pinned v1 would be wrong

--- 5. report what actually happened ------------------------------
  . success on listing/482/assessment: confidence 80% -> 84%
  . failure on source/boards-example/rate-limit: confidence 60% -> 39%

El explorador editó listing/553 después de escribir el paquete. Al ejecutor se le indica que su versión anclada está obsoleta, en lugar de recibir la nueva a escondidas, vuelve a leer y descarta el anuncio. Luego informa lo que realmente sucedió, y la confianza de los hechos detrás de la decisión se ajusta en consecuencia.

Salida completa de ambas sesiones: docs/demo-transcript.md.

Para verlo como dos terminales en lugar de un solo script:

# terminal 1
MEMORY_DB=shared.db node dist/demo/scout.js
# terminal 2
MEMORY_DB=shared.db node dist/demo/executor.js

Related MCP server: junto-memory

Herramientas

Herramienta

Qué hace

remember

Almacena un hecho bajo scope + key. Una clave existente obtiene una nueva versión; no se sobrescribe nada.

recall

Lee la versión actual de una clave, o busca por prefijo de scope, etiqueta, texto libre, confianza mínima.

history

Cada versión de una clave: valor, autor, confianza y la cadena de hash que vincula las versiones.

handoff

Escribe un paquete: resumen, próximos pasos, preguntas abiertas y versiones de registros ancladas. Sin referencias, se ancla todo lo que la sesión tocó.

resume

Reclama el paquete abierto más antiguo para este agente y lo devuelve con los registros anclados resueltos y los obsoletos marcados.

record_outcome

Reporta éxito o fracaso contra los registros que impulsaron una decisión; su confianza se mueve y se conserva el antes/después.

memory_stats

Conteos, confianza promedio, estados de traspaso y una verificación de integridad opcional de toda la cadena de hash.

Úsalo desde un cliente MCP

{
  "mcpServers": {
    "handoff-memory": {
      "command": "node",
      "args": ["/absolute/path/to/agent-handoff-memory/dist/src/server.js"],
      "env": {
        "MEMORY_DB": "/absolute/path/to/shared-memory.db",
        "AGENT_ID": "researcher"
      }
    }
  }
}

Apunta varios clientes a la misma MEMORY_DB con diferentes AGENT_ID y compartirán una única memoria. El almacén se ejecuta en modo WAL precisamente para que esto funcione.

Para Claude Code:

claude mcp add handoff-memory -e MEMORY_DB=$PWD/shared.db -e AGENT_ID=researcher \
  -- node $PWD/dist/src/server.js

Decisiones de diseño

Los valores son inmutables, las opiniones no. Escribir un scope+key existente añade la versión N+1 y marca la anterior como reemplazada. La confianza y los conteos de resultados sí se mueven en la versión actual (son opiniones sobre un hecho, no el hecho), y cada movimiento se escribe en una tabla outcomes con valores antes/después. Así, history sigue siendo un historial de lo que se creyó, no un registro de cambios de voto.

Cada versión se hashea y se encadena. Cada fila lleva el sha256 de su cuerpo más el hash de la versión anterior. memory_stats { verify: true } recalcula todo; un valor editado directamente en el archivo de base de datos se muestra como corrupto. Una de las pruebas hace exactamente esa edición y verifica que se detecta.

Las referencias obsoletas se reportan, nunca se intercambian silenciosamente. Un paquete ancla versiones. Si el terreno cambió, se informa al agente receptor, que puede releer deliberadamente. La alternativa (servir silenciosamente la versión más nueva) hace que un agente actúe sobre datos sobre los que nunca se construyó su plan.

La confianza sigue a los resultados y se mantiene dentro de 0..1. El éxito cierra parte de la brecha hacia 1, el fracaso escala hacia abajo, por lo que la evidencia repetida se acerca a los bordes sin fijarse allí. Los multiplicadores residen en una tabla en src/models.ts.

Sin red, sin demonio, sin módulos nativos. El almacenamiento es node:sqlite, el transporte es stdio. Todo es un proceso node y un archivo.

SenseLab AMFS

El proyecto también se ejecuta en el SDK TypeScript de SenseLab AMFS. src/amfs/sqlite-adapter.ts implementa el contrato AmfsAdapter de SenseLab sobre SQLite (su AgentMemory hace el razonamiento, esto hace el recuerdo), y demo/amfs-bridge.ts vuelve a contar el tutorial de traspaso a través de su API:

npm run demo:amfs

El SDK incluye un adaptador en memoria (desaparece al salir del proceso) y un adaptador HTTP (necesita un endpoint alojado y una clave); este llena el vacío entre ellos y, de paso, rellena contentHash/integrityChain y responde a commitLog(), que el adaptador en memoria deja vacío. Una prueba de paridad ejecuta la misma sesión a través de ambos adaptadores y compara los resultados.

Lo que medí mientras lo construía, incluido por qué commitOutcome(SUCCESS) reduce la confianza en la versión 0.3.2, está documentado en docs/senselab-amfs.md.

Pruebas

npm test

29 pruebas sobre el almacén, el ciclo de vida del traspaso, la superficie MCP (un cliente y servidor reales unidos por un transporte en memoria, para que también se ejerciten los esquemas de las herramientas) y el adaptador AMFS. El grupo AMFS se salta a sí mismo cuando el SDK opcional no está instalado.

Estructura

src/models.ts              types and the outcome table
src/store.ts               versioned SQLite store: memory, handoffs, outcomes
src/server.ts              the MCP server and its seven tools
src/amfs/types.ts          structural mirror of the AMFS SDK shapes
src/amfs/sqlite-adapter.ts durable adapter for SenseLab's AMFS SDK
demo/scout.ts              session 1: crawl, write, correct, hand over
demo/executor.ts           session 2: resume, act, report outcomes, hand back
demo/amfs-bridge.ts        the same story through @senselab-ai/amfs

Requisitos

Node 24 o superior, donde node:sqlite es estable y no necesita bandera; desarrollado y probado en la versión 25.9. En Node 22.5-23.x, el mismo código se ejecuta con --experimental-sqlite. npm install compila el proyecto (a través de prepare), por lo que dist/ está listo después.

La dependencia opcional @senselab-ai/amfs es publicada por SenseLab bajo BSL-1.1; el código de este repositorio es MIT.

Licencia

MIT - consulte LICENSE.

Available Tools

7 tools
handoffHand work to the next agentA

Write a handoff packet: what was done, what is left, what is still unclear, and which exact record versions the next agent must read. With no refs given, everything this session touched is pinned.

ParametersJSON Schema
NameRequiredDescriptionDefault
refsNo
titleYes
summaryYesState of play in a few sentences
to_agentNoLeave empty for whoever picks it up
next_stepsNo
open_questionsNo

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It does reveal a key behavior: 'With no refs given, everything this session touched is pinned.' This adds context beyond the schema. However, it does not state whether the tool persists data, requires permissions, or has any side effects, leaving some behavioral gaps for a write-oriented tool.

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 exactly two sentences, front-loaded with the primary action ('Write a handoff packet') and then elaborating with specifics. Every sentence contributes meaningful information without repetition or fluff.

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 the tool's moderate complexity (6 parameters, no output schema, no annotations), the description provides a solid high-level understanding: what the handoff packet contains and the default behavior when refs are omitted. It does not describe return values or side effects, but for a simple handoff tool this is a reasonable level of completeness.

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 only 33% (summary and to_agent have descriptions). The tool description compensates somewhat by referencing 'what was done, what is left, what is still unclear' and 'exact record versions,' which map to summary, next_steps, open_questions, and refs. However, it does not directly explain each parameter's syntax or constraints, and the mapping is implicit rather than explicit.

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 function with a specific verb ('Write') and resource ('handoff packet'), and enumerates the packet's contents: what was done, what is left, what is unclear, and exact record versions. This distinguishes it from sibling memory/recall tools, which focus on past interactions rather than forward-looking handoff.

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 gives clear context: it is for writing a handoff packet for the next agent. It does not explicitly mention alternatives or exclusions, but the 'next agent' framing makes the intended use case unambiguous. A 5 would require explicit when-not-to-use guidance, which is absent.

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

historyVersion historyB
Read-only

Every version of one key, oldest first: who wrote it, when, with what confidence, and the hash chain that ties the versions together.

ParametersJSON Schema
NameRequiredDescriptionDefault
keyYes
scopeYes

TDQS

B3.4/5.0
Behavior4/5

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

With readOnlyHint:true, the annotation already signals safety. The description adds meaningful behavioral detail: the result is ordered oldest first, includes authorship/confidence metadata, and describes the hash chain linking versions. This goes beyond the annotation and gives the agent an accurate model of the tool's output behavior.

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 a single, tightly packed sentence that front-loads the most important idea ('Every version of one key, oldest first') and then adds specific useful detail. No wasted words; every clause earns its place.

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?

While the tool has only two parameters and no output schema, the description still leaves a critical gap: 'scope' is undefined. The return contents are described in terms of metadata and hash chain, but no structure is given, and the parameter semantics are incomplete. For an agent to invoke this tool correctly, it needs more context on what 'scope' represents.

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

Parameters2/5

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

The schema has zero description coverage, so the description must explain both parameters. It refers to 'one key' but never clarifies the 'scope' parameter, which is required. The meaning of 'scope' remains ambiguous from both schema and description, leaving the agent without enough information to correctly construct parameters.

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?

The description clearly states the tool provides every version of a specified key, ordered oldest first, and lists the included details (author, timestamp, confidence, hash chain). It is not a tautology and effectively distinguishes itself from sibling tools like 'remember' and 'recall' by focusing on version history, though it lacks an explicit verb like 'get' or 'list'.

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

Usage Guidelines3/5

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

The description implies when to use the tool: when you need to see the full version history of a key, including metadata. However, it provides no explicit guidance on when not to use it, no mention of alternatives like 'recall', and no exclusions, so usage context is only inferred rather than stated.

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

memory_statsMemory statisticsA
Read-only

Counts per agent and scope, average confidence, handoff states, and an integrity check of the hash chain.

ParametersJSON Schema
NameRequiredDescriptionDefault
verifyNoAlso re-walk every hash

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, confirming no destructive side effects. The description adds valuable behavioral context beyond annotations, such as the specific computations it performs (counts, average confidence, handoff states) and the integrity check of the hash chain. This informs the agent about the tool's analytical nature and potential complexity (e.g., re-walking hashes).

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?

The description is a single sentence that efficiently lists the tool's capabilities without redundant words. It is front-loaded with the main action ('counts') and covers all key outputs. However, the list-like structure could be slightly more readable (e.g., separating distinct items with commas or formatting), but it remains concise and informative.

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 tool with one optional parameter, no output schema, and a read-only annotation, the description adequately conveys what the tool returns (counts, averages, states, integrity check result). It does not explicitly state the return format or confirm that it returns a summary object, but the implied items give sufficient context for an agent to understand the output nature.

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% for the single optional parameter 'verify', which already explains its meaning ('Also re-walk every hash'). The description does not add any additional parameter semantics beyond what the schema provides, so the baseline score of 3 applies.

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 with a specific verb ('counts') and lists the exact resources and metrics it covers: per agent and scope, average confidence, handoff states, and an integrity check. This distinguishes it well from sibling tools like 'remember' and 'recall' which are about recording or retrieving memories, not summarizing statistics.

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

Usage Guidelines3/5

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

The description implies this tool is used for obtaining aggregate statistics and performing integrity checks, but it does not explicitly state when to use it versus alternatives (e.g., 'history' for chronological sequences, 'handoff' for state transitions). No exclusions or prerequisites are mentioned, so the guidance is only implicit.

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

recallRecall factsA
Read-only

Read the current version of a key (scope+key), or search current records by scope prefix, tag, free text and minimum confidence.

ParametersJSON Schema
NameRequiredDescriptionDefault
keyNoExact key - returns one record
tagNo
limitNo
queryNoFree-text match on value, key or scope
scopeNoExact scope, or a prefix when searching
min_confidenceNo

TDQS

A4.2/5.0
Behavior4/5

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

Annotations provide readOnlyHint: true, so the read-only nature is already covered. The description adds context by specifying 'current version' and 'current records', indicating it returns latest state, not historical. It doesn't mention pagination but for a read tool with annotation, this is adequate.

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 a single concise sentence that covers the dual functionality without fluff. It's front-loaded with the main action 'Read' and then enumerates search criteria efficiently.

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 it's a read-only tool with readOnlyHint already in annotations, the description covers key behaviors: exact key retrieval, search modes, and what is searched (scope, tag, free text, min confidence). It doesn't mention limit parameter in description, but schema covers min/max. For a tool of this complexity, it's adequately complete.

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?

Description explains key (scope+key), scope prefix, tag, free text, and minimum confidence, giving meaning to params like tag, query, scope, and min_confidence that have no schema description. Limit is not mentioned, but overall it compensates for the 50% schema coverage.

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 function: reading a specific key or searching current records. It distinguishes between exact key lookup and search modes, and differentiates from siblings like remember (write) and history (past versions).

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

Usage Guidelines3/5

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

It explains the two usage modes (exact key vs search) but does not explicitly contrast with alternatives like history for past versions or memory_stats. There's implied guidance by showing search parameters, but no explicit exclusions.

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

record_outcomeReport what actually happenedB

Close the loop: report success or failure against the records that drove the decision. Their confidence moves accordingly, and the before/after values are kept as an audit trail. Pass handoff_id to close the packet in the same call.

ParametersJSON Schema
NameRequiredDescriptionDefault
noteNo
refsNoDefaults to every record this session touched
outcomeYes
handoff_idNo
outcome_refYesExternal reference, e.g. "RUN-42"

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries full burden for behavioral disclosure. It mentions 'confidence moves' and 'audit trail', which suggests mutation, but does not state whether the action is reversible, what happens on conflicting outcomes, or any rate limits or permissions required. This is insufficient for a tool with 5 parameters.

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?

The description is two sentences with clear, imperative language and front-loaded purpose. It efficiently covers outcome, audit, and handoff without excess. Could be slightly more structured but is mostly effective.

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

Completeness3/5

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

Given no output schema, the description should explain return values or confirmation behavior, which it does not. With 5 parameters including nested objects, it omits details on how 'refs' defaults work and what the audit trail returns. Adequate but not complete for complex interactions.

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 40%, and the description adds value by explaining 'outcome_ref' as an external reference and mentioning 'handoff_id' for closing packets. However, it does not clarify defaults for 'refs' or constraints like 'version' minimum beyond schema. Baseline adjusted for partial coverage.

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?

The description clearly states the tool reports success or failure against records, using verbs like 'report' and 'close the loop'. It distinguishes from siblings like 'remember' (likely creation) and 'history' (likely retrieval) by emphasizing outcome tracking and audit trails.

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

Usage Guidelines3/5

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

The description implies use when finalizing a decision, but does not explicitly state when not to use it or suggest alternatives among siblings like 'handoff' or 'resume'. It mentions passing 'handoff_id' but no exclusions or prerequisites.

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

rememberRemember a factA

Store a fact under scope+key. Writing an existing key appends a new version instead of overwriting, so nothing is ever silently lost.

ParametersJSON Schema
NameRequiredDescriptionDefault
keyYesName inside the scope, e.g. "assessment"
tagsNoLabels for later filtering
scopeYesNamespace, e.g. "listing/482" or "source/boards-io"
valueNoAny JSON value
confidenceNoHow much you trust this, 0..1 (default 0.7)

TDQS

A4.4/5.0
Behavior4/5

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

Since annotations only state readOnlyHint=false and idempotentHint=false, the description adds critical behavioral context by disclosing that writing an existing key appends a new version rather than overwriting, ensuring no data loss. It also implies that the tool mutates state (non-read-only) consistent with annotations. It does not mention potential side effects like storage limits or the need for specific permissions, but the key versioning behavior is well covered.

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 a single, clear sentence that is front-loaded with the purpose ('Store a fact') and then efficiently conveys the critical behavioral nuance about versioning. No wasted words, ideal length for an agent to parse quickly.

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?

The tool has 5 parameters, 2 required, and no output schema, so the description needs to cover mutation behavior and parameter usage. It does so adequately by explaining the versioning behavior and clarifying the scope+key structure. However, it does not specify return values or any potential errors, but with no output schema and high schema coverage, the description is reasonably complete for an agent to invoke correctly.

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?

The schema has 100% coverage, with descriptions for all parameters (e.g., 'Name inside the scope' for key, 'Labels for later filtering' for tags). The description adds meaning by framing the parameters as 'scope+key' and explaining that value can be any JSON, but it does not go beyond schema for individual parameters. Since schema coverage is high, the baseline is 3, but the description's emphasis on the scope+key pairing and the versioning behavior adds practical semantics that elevate it slightly.

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 'Store a fact under scope+key', using a specific verb (store) and resource (fact with scope and key). It distinguishes from siblings like 'recall' (which presumably retrieves) and 'history' (which shows versions). The mention of versioning behavior further differentiates it from a simple write operation.

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 explains when to use this tool (to store facts) and implicitly when not (it appends rather than overwrites, so users must be aware). It does not explicitly name alternative tools like 'recall' for retrieval, but the context signals include sibling tools that suggest the use case. The versioning guideline helps clarify a key decision point for the agent.

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

resumePick up a handoffA

Claim the oldest open packet addressed to this agent (or a specific one by id) and get back the packet together with the pinned records. Refs whose version has moved on are reported as stale rather than silently swapped for the newer version.

ParametersJSON Schema
NameRequiredDescriptionDefault
handoff_idNo

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are provided, so the description must carry full behavioral transparency. It discloses that refs with moved versions are reported as stale rather than silently swapped, which is a valuable behavioral detail. However, it does not disclose whether claiming is idempotent, whether it removes the packet from the queue, or what happens if the handoff_id is invalid. A 3 is appropriate because while it adds some behavior context, significant gaps remain for a mutation-like tool.

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 extremely concise, using two sentences to convey purpose, usage nuance, and a critical behavioral quirk (stale refs). No waste, front-loaded with the key action. The behavioral detail is earned and non-redundant.

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

Completeness3/5

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

Given the tool's action (claiming a packet, likely a mutation) with no annotations, output schema, or parameter descriptions, the description is reasonably complete for its complexity but falls short. It explains the core behavior and a trick (stale refs), but omits return format details, error cases (e.g., no open packets), and whether claiming is mutable or reads the state. For a single-param tool with no output schema, a 3 reflects adequate but not robust completeness.

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

Parameters2/5

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

Schema description coverage is 0%, meaning the description must compensate. The description implies handoff_id is optional ('or a specific one by id') and suggests default behavior is to claim the oldest open packet. However, it does not document the handoff_id parameter's format, semantics, or constraints. Given the low coverage and single parameter, this is a notable gap.

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 uses a specific verb 'Claim' and clearly identifies the resource as 'the oldest open packet addressed to this agent (or a specific one by id)' and states the return of both the packet and pinned records. It distinguishes from siblings like 'handoff' (likely a related tool) and 'remember'/'recall' by emphasizing a claim/retrieve action on open packets.

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 clarifies when to use this tool: to claim an open packet addressed to the agent, with an optional specific id. It implicitly excludes use for packets not addressed to the agent or not open. However, it does not explicitly state when not to use it (e.g., if the agent already has a claimed packet) or provide explicit alternatives among siblings.

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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 7 tool updatesv0.1.0
    • First observedhandoff
    • First observedhistory
    • First observedmemory_stats
    • First observedrecall
    • First observedrecord_outcome
    • First observedremember
    • First observedresume

TDQS

A4/5.0

Scored across 7 tools

Disambiguation5/5

Each tool targets a distinct action: storing, reading, versioning, handoff creation, handoff retrieval, outcome recording, and statistics. No two tools overlap in purpose, making misselection unlikely.

Naming Consistency5/5

All tool names use lowercase snake_case with a verb-first or clear noun pattern (remember, recall, history, handoff, resume, record_outcome, memory_stats). The style is uniform and predictable.

Tool Count5/5

Seven tools is well-scoped for a memory and handoff system. Each tool fills a necessary role without redundancy or excessive granularity.

Completeness5/5

The set covers the full lifecycle: writing memories, reading (current and historical), creating handoff packets, claiming and resuming them, recording outcomes, and monitoring integrity. There are no obvious gaps for the stated purpose.

Maintenance

ActivitySlowing
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers