Skip to main content
Glama

review

Read-only

Audit Markdown memory vaults for stale or expired notes, contradictions, similar groups, cut titles, orphans, broken links, invalid frontmatter, and outdated flags to fix or archive issues.

Instructions

Vault health: stale memories, expired memories, possible contradictions, groups of similar memories, cut titles, orphans, broken links, invalid frontmatter and memories flagged as outdated.

Returns JSON {"totals", "stale", "expired", "contradictions", "similar", "cut_titles", "orphans", "broken_links", "invalid_frontmatter", "flagged", "read_only"}. "similar" lists groups {"paths", "similarity"} of active memories (any type or project, not session or reminder) to merge; "orphans" lists active memories (not session or reminder) with no links in or out, each {"path", "title", "candidates": [{"path", "title", "reason"}]} with up to 3 memories of its project or _shared to link (shared file or 2+ tags), linkable first; "cut_titles" lists memories whose first body line repeats the title and goes on. "expired" lists active memories {"path", "title", "type", "valid_until"} whose valid_until is before today (checkpoints are left out: checkpoint manages them); it only reports, so for each one call revise(action="archive"), or remember a new memory with supersedes if it still applies in updated form. "totals" counts every item per category (the lists are cut at limit). Problems in read-only zones (you cannot fix them here; in practice broken links and invalid frontmatter, since memories live in memory zones) are not mixed in: they go under "read_only", with the same categories and their own "totals". "stale" lists active memories older than 90 days (from created) never marked helpful, except preferences and constraints. "flagged" lists memories marked outdated with revise(action="feedback", value="outdated"); once fixed, clear the mark with revise(action="set", fields={"flagged": null}) or they keep showing up.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "review"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoPath prefix to limit the review.
zoneNoOnly notes of this zone, as in episteme.toml (e.g. "memory").
limitNoMaximum items per category.
projectNoLimit memory checks to this project (and _shared). "*" reviews every project.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.16.0

TDQS

A4.5/5.0
Behavior5/5

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

Consistent with readOnlyHint=true and explicitly says 'it only reports'. Adds substantial behavior beyond annotations: lists are truncated at limit while 'totals' counts everything, read-only zone problems are segregated into a separate 'read_only' bucket with their own totals, and the flagged mark persists until manually cleared.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded and the return-shape line is useful, but the body is a dense run-on paragraph where per-category rules are packed into long semicolon chains. There is mild redundancy between the top-level JSON key list and the per-category explanations.

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

Completeness5/5

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

No output schema exists, so the description carries the return contract and does so thoroughly: it names every response key, the nested shapes of 'similar' and 'orphans' candidates, and the semantics of each category. An agent could act on the output without further documentation.

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?

Schema coverage is 100%, so the baseline is 3; the description still adds value by clarifying that limit truncates each category list while totals remain complete. It also reinforces project scoping by explaining that 'similar' and 'orphans' span any project or _shared unless filtered.

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?

Opens with a specific verb+resource ('Vault health') and enumerates the nine check categories it reports (stale, expired, contradictions, similar, cut_titles, orphans, broken_links, invalid_frontmatter, flagged). It also draws explicit boundaries against siblings: checkpoints are excluded because 'checkpoint manages them', and fixes belong to 'revise'.

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?

Gives concrete follow-up routing for findings: for expired entries call revise(action="archive") or remember with supersedes; for flagged entries clear with revise(action="set", fields={"flagged": null}). It also states the tool only reports and that read-only zone problems cannot be fixed here. What's missing is a general statement of when to run this review at all versus siblings like search or context.

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