Skip to main content
Glama

memory_explain

Read-only

Trace one memory’s full lifecycle—who wrote, who asked, who was refused—and return content only after read-gate checks with principal_id and tenant; otherwise withhold it.

Instructions

Trace one memory's full lifecycle: who wrote it, who asked, who was refused.

Supply principal_id and tenant to receive the content; it is then checked against the read gate exactly as memory_recall would. Without them the lifecycle is returned and the content is withheld, because this surface has no other way to know who is asking -- and an explanation endpoint more permissive than recall is a bypass.

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": {
      "memory_id": "<memory_id>"
    },
    "name": "memory_explain"
  }
}

Input Schema

NameRequiredDescriptionDefault
rolesNoemployee
tenantNo
memory_idYes
principal_idNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.2

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, but the description adds the critical behavior that the output shape changes depending on whether principal_id/tenant are supplied, that content is gated through the same read gate as recall, and the security rationale for that asymmetry. This is exactly the kind of disclosure an agent cannot recover from structured fields.

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 scoping sentence is front-loaded and the gating rule follows immediately, with no filler. The closing clause about being 'more permissive than recall' restates the bypass argument already implied, so it is slightly redundant, but the text remains short and well ordered.

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 return-value detail is unnecessary, and the description covers the one truly surprising behavior (conditional content redaction). The remaining gap is the unexplained `roles` parameter and how it interacts with the read gate, which is material for an authorization-sensitive tool.

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 0%, so the description must carry the load, and it does explain principal_id and tenant plus their effect on the response. It says nothing about `roles` (which defaults to 'employee' and plausibly affects the read gate) or `memory_id`, leaving half the parameters to be inferred from their names.

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 first sentence names a specific verb and resource — tracing one memory's full lifecycle — and enumerates the contents (who wrote it, who asked, who was refused). It also implicitly separates itself from memory_recall by describing recall as the adjacent read path, so an agent can distinguish the two without opening either schema.

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

Usage Guidelines5/5

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

The description gives an explicit conditional: supply principal_id and tenant to get content, omit them for a redacted lifecycle view. It names memory_recall as the comparison point and states the rule that governs which surface to use, so both the when and the when-not are covered.

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