Skip to main content
Glama

memex_correct

Correct a wrong or outdated stored fact by replacing it with new text while keeping the old record visible in history. Requires the original record id from a prior recall or get result.

Instructions

Correct a memory that is wrong or outdated, in one call: stores text as a new record superseding id. The old record is kept, marked superseded, and stays visible in memex_get's history -- nothing is deleted. id must come from a prior memex_recall or memex_get result; an unknown id is rejected. If id is already superseded, this reports the current replacement instead of writing, unless force=true. Do not use this for a brand-new, unrelated fact -- use memex_store instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesId of the record being corrected (from a prior memex_recall or memex_get result).
textYesThe corrected fact, verbatim.
forceNoSupersede `id` anyway even if something else already superseded it.
sourceNoOptional provenance, e.g. a URL or file path.
event_atNoOptional ISO-8601 time the described thing happened.
valid_toNoOptional ISO-8601 end of validity (exclusive).
valid_fromNoOptional ISO-8601 start of validity (inclusive).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

The description discloses key behavioral traits beyond the annotations: it keeps the old record, marks it superseded, and does not delete anything (aligning with destructiveHint=false). It also explains the behavior when id is already superseded (reports replacement unless force=true). The annotations provide no contradiction; the description adds valuable context about side effects and edge cases. However, it does not mention error response details or permission requirements, which are not covered by annotations, but the core behavioral transparency is strong.

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 moderately long but every sentence serves a purpose. It is front-loaded with the primary action, then covers behavioral details, prerequisites, edge cases, and a sibling distinction. No filler or redundancy. It is well-structured as a single cohesive paragraph that reads naturally. Slightly longer than necessary but still efficient for the information density.

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 no output schema, so the description must convey enough about behavior. It explains the non-destructive nature, the superseding mechanism, handling of already-superseded ids, and the prerequisite for id. It also differentiates from memex_store. For a mutation tool with 7 parameters (only 2 required), the description covers the critical aspects needed to use it correctly. It does not specify the exact response format, but it mentions 'reports the current replacement' which gives a hint. Overall, it is complete for the tool's complexity.

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 description coverage is 100%, so the baseline is 3. The description adds meaningful context for the key parameters: it emphasizes that 'id' must come from a prior result and that unknown ids are rejected (reinforcing but slightly extending the schema), and it clarifies the 'force' parameter by explaining the default behavior (reports replacement instead of writing) which is not fully explicit in the schema description. This adds value beyond the schema, justifying a score above baseline.

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 states a specific action (correcting a wrong/outdated memory) and the mechanism (stores new text superseding an id). It clearly differentiates from the sibling memex_store by explicitly stating 'Do not use this for a brand-new, unrelated fact -- use memex_store instead.' This makes the tool's purpose unambiguous and distinguishes it from alternatives.

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 explicit when-to-use context (when a memory is wrong or outdated) and a direct exclusion ('Do not use this for a brand-new, unrelated fact') with the alternative named. It also states a prerequisite (id must come from a prior memex_recall or memex_get result, and unknown ids are rejected), which is critical for correct invocation. This is comprehensive guidance for selecting this tool over siblings.

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