Skip to main content
Glama

memory_doctor

Lists repo memories with stale or missing anchors, providing suggested re-anchor targets. Requires prior memory_validation; then use memory_rebind to apply fixes.

Instructions

List repo memories whose anchor is stale or gone, each with suggested re-anchor targets (qualified names) — the actionable companion to memory_validate. Read-only; reports the last-validated status, so run memory_validate first for a fresh check. Rebind the listed memories with memory_rebind.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

No annotations provided, but description declares it is read-only and reports last-validated status, which adequately conveys that it does not modify state. More detail on how re-anchor targets are generated would improve score.

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 succinct sentences: first states the main action, second adds behavioral context and prerequisite, third gives the next step. No unnecessary words, well-structured and front-loaded.

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?

For a zero-parameter list tool without an output schema, the description covers purpose, prerequisite, side effects, and follow-up action. It also positions itself among siblings. Completely sufficient for an agent to understand and use 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?

Tool has no parameters, so baseline is 4. The description adds value by explaining what the tool outputs (list of memories with suggested targets), which helps the agent understand the result without an output schema.

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?

Description clearly states it lists repo memories with stale or gone anchors and provides re-anchor suggestions. It defines specific verb 'List' with a clear resource condition, and distinguishes itself from sibling tools like memory_validate and memory_rebind.

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?

Explicitly tells when to use: run memory_validate first for fresh status, then use this tool for stale memories, and finally rebind with memory_rebind. Provides clear sequential workflow and context about being read-only.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cq27-dev/rag-rat'

If you have feedback or need assistance with the MCP directory API, please join our Discord server