Skip to main content
Glama

save_hipocampo

Guarda un recuerdo en el Hipocampo (memoria_vectorial).

INSERT inmediato y NO bloqueante: el embedding se genera en background
(_finalize_save_bg) junto con dedup semántico, auto-link y auditoría de
contradicciones. Hasta que el embedding se backfillea (~segundos), la
memoria queda en tier WARM (embedding=NULL) y es recuperable por texto.

Si ya existe un recuerdo casi idéntico (trigram), se advierte y se omite
el guardado a menos que force=True. El dedup semántico (>0.9) corre en
background y solo loguea — no bloquea.

Args:
    content: Texto del recuerdo a guardar.
    memory_type: Tipo de memoria. Valores comunes:
                 "event" (evento/experiencia),
                 "decision" (decisión tomada),
                 "profile" (dato personal).
                 Por defecto: "event".
    code: Código o etiqueta corta para agrupar recuerdos (opcional).
          Ej: "documentacion", "bugfix", "feature", "setup".
    categories: Lista de categorías (opcional).
                Ej: ["python", "mcp", "infraestructura"].
    session_id: Opcional. Identificador de sesión para aislar memorias.
    force: Si True, guarda incluso si existe un recuerdo muy similar.
    auto_link: Si True, busca recuerdos semánticamente similares (>0.75)
               y crea enlaces "similar" automáticamente.
    nivel: Nivel de memoria jerárquica:
           "episodica" (default) — detalle completo, comprimible,
           "semantica" — conocimiento consolidado, protegido,
           "automatica" — regla permanente, nunca se comprime.
    critico: Si True, la memoria NUNCA se olvida ni se archiva.
             Protección de por vida independiente del nivel.

Returns:
    Confirmación con el ID asignado.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeNo
forceNo
nivelNoepisodica
contentYes
criticoNo
auto_linkNo
categoriesNo
session_idNo
memory_typeNoevent

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

No annotations exist, so the description carries the full behavioral disclosure burden — and it excels. It reveals asynchronous background embedding ('_finalize_save_bg'), the transient WARM tier state with embedding=NULL until backfill, retrievability-by-text during that window, blocking trigram dedup versus non-blocking semantic dedup (>0.9 logs only), auto-link behavior (>0.75 threshold), and the critico flag's lifetime protection semantics. This is rich operational detail an agent needs to predict side effects.

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 long but information-dense and well-organized: a front-loaded behavioral summary precedes a structured Args block with per-parameter detail. Nearly every sentence earns its place given the 0% schema coverage and the tool's genuine complexity. Minor trimmable details like the internal function name '_finalize_save_bg' and the 'Returns' line (redundant with the output schema) keep it from a 5.

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?

For a high-complexity tool (9 params, async behavior, dedup logic, retention tiers, side-effectful auto-linking), the description covers parameters, behavioral states, side effects, duplicate handling, and returns. Small gaps remain: error conditions are unspecified, memory_type lists only 'valores comunes' without stating whether other values are accepted, and there is no guidance on content-length limits. These are minor against an otherwise thorough definition.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% — the schema provides only parameter titles with no descriptions. The description fully compensates by documenting all 9 parameters with defaults, semantics, and concrete examples: memory_type values ('event', 'decision', 'profile'), code examples ('documentacion', 'bugfix'), categories, nivel hierarchy, and force/critico behavior. Every parameter an agent needs to understand is explained with actionable detail.

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 opening line 'Guarda un recuerdo en el Hipocampo (memoria_vectorial)' names a specific verb (save/insert) and a specific resource (a memory into the vector store). The description goes further to refine purpose by delineating the exact write semantics: immediate, non-blocking insert with background embedding. Against a sibling set containing update_hipocampo, delete_hipocampo, link_hipocampo, and search_hipocampo, this is unmistakably the primary create/insert tool.

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?

The description provides clear context about when a save will or won't happen: 'Si ya existe un recuerdo casi idéntico (trigram), se advierte y se omite el guardado a menos que force=True' tells the agent the call may be a no-op and how to override it. However, it never explicitly names alternatives for adjacent use cases (e.g., when to call update_hipocampo for modifying an existing memory instead, or search_hipocampo for retrieval). Context is clear but exclusions and alternative routing are absent.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources