Skip to main content
Glama

Ajouter une mémoire

memory_add

Add atomic facts to persistent semantic memory with optional trust, evidence, and validity; human-rejected values are blocked.

Instructions

Écrit ou renforce un fait atomique (sujet → prédicat → objet), avec confiance, preuve et période de validité optionnelles. Une valeur rejetée par la revue humaine est bloquée à l'écriture.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pinNoÉpingle la mémoire : toujours en tête de contexte (memory_list)
tagsNoMots-clés pour la recherche lexicale
themeNoThème hiérarchique, ex: alimentation/boissons. Sert de carte de routage : une recherche par thème traverse les projets
trustNoNiveau de confiance : inféré ou citation verbatim ; utilisez memory_verify pour verified
objectYesL'objet du fait, ex: lait, lactose
projectNoProjet (défaut: global — la mémoire traverse tous les repos)
subjectYesLe sujet du fait, ex: utilisateur, projet, module
evidenceNoPreuve courte ou citation ayant motivé le fait
predicateYesLe prédicat, ex: boit, intolerant-a, preferer
validFromNoDébut de validité ISO 8601, distinct de l'enregistrement
importanceNoImportance intrinsèque 0..1 (défaut 0.5). 0.9+ = fait critique qui doit l'emporter
provenanceNoRéférence de la session d'origine
validUntilNoFin de validité ISO 8601 exclusive
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses that the tool writes and that rejected values are blocked at write time, which is valuable context beyond the schema. However, it omits details about the 'reinforce' behavior (e.g., what happens on duplicate facts), idempotency, or error handling.

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 sentences deliver the core action and a critical constraint without excess. The description is front-loaded with the primary verb and resource, then provides the rejection caveat. Every word earns its place.

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

Completeness2/5

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

Despite a rich schema, the description lacks connection to the surrounding workflow (memory_candidate_add, memory_verify, etc.). The rejection behavior hints at a review process but does not explain when to use this tool versus alternatives. With no output schema, more contextual guidance was needed.

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%, so the baseline is 3. The description groups optional confidence, evidence, and validity period but does not add new meaning beyond the schema's parameter descriptions. No compensation needed.

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 uses 'writes or reinforces' as a specific verb and identifies the atomic fact (subject→predicate→object) as the resource. It also mentions the rejection-by-human-review behavior, which subtly distinguishes it from candidate/review workflows and aligns with the tool's purpose.

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

Usage Guidelines2/5

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

No explicit when-to-use or when-not-to-use guidance is provided. The description implies it is for persisting a fact but never mentions alternatives like memory_candidate_add (for review) or memory_add_many (for batch), leaving the agent to infer context from sibling tool names.

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/WindSeries69/memsem'

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