Skip to main content
Glama

Update

update
Idempotent

Replace an existing memory document's content while keeping its doc_id, title, project, and tags, and reindexing its chunks. Call only when explicitly requested.

Instructions

Remplace le texte d'un document existant (même doc_id, titre, projet et tags conservés ; chunks réindexés). N'appeler QUE si Denis le demande explicitement dans son message courant ; jamais de ta propre initiative.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesNouveau contenu intégral.
doc_idYesIdentifiant du document.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleYes
chunksYes
doc_idYes
projectYes
updatedNoTrue si un document existant a été remplacé.
duplicate_ofNodoc_id d'un document au contenu identique ; rien n'a été écrit.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations only carry idempotentHint=true, so the description adds meaningful disclosure beyond them: what is preserved (doc_id, title, project, tags), that the text is fully replaced, and the side effect that chunks are reindexed. It stops short of noting permissions or failure modes, but the behavioral picture is substantially richer than the annotation.

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?

Two tightly packed sentences with zero waste: the first states scope and preservation/reindexing behavior, the second states the calling precondition. Front-loaded and efficient.

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 two-parameter mutation tool that ships an output schema, everything an agent needs is present: replacement semantics, preserved fields, the reindexing side effect, and a strict invocation rule. Nothing material is missing.

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% with only two parameters, so the schema already documents both text and doc_id. The description adds only a light constraint ('même doc_id', existing document) without new format or syntax detail, so the baseline 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?

States a specific verb and resource ('Remplace le texte d'un document existant') and clarifies that it acts on an existing doc_id while preserving title, project and tags, which distinguishes it from the add_* siblings that add new content. An agent can tell it replaces the whole text rather than appending.

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?

Explicit and strict: 'N'appeler QUE si Denis le demande explicitement dans son message courant ; jamais de ta propre initiative.' This gives a clear when-to-use condition and an explicit prohibition, leaving nothing to inference.

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