Skip to main content
Glama

sage_remember

Persist verified knowledge or session context into SAGE's long-term memory. Use fact type for durable infrastructure details, observation for ephemeral context; corrections replace old memories atomically.

Instructions

Store a memory in SAGE. When domain is omitted, app-v23 uses this agent's approved owned home domain (older nodes retain the legacy general default); an explicit domain is never remapped. For a correction, pass replaces_memory_id here instead of calling sage_forget first: SAGE stores and verifies the replacement before it challenges the old memory, so interruption can leave both records but can never leave neither. IMPORTANT: Use type='fact' (confidence 0.95) for durable knowledge that should persist long-term and be visible across all agents — infrastructure details (IPs, hostnames, SSH commands, URLs, ports), architecture decisions, verified configurations, credentials paths, and server specs. Use type='observation' for ephemeral session context. Facts survive confidence decay and cross provider boundaries; observations do not.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagsNoUser-defined labels for this memory (e.g. 'important', 'project-x')
typeNoMemory type. A correction inherits the original type when omitted. fact (0.95+): verified durable knowledge — IPs, hostnames, architecture decisions, configs, infrastructure. observation (0.80): session-level context — what happened, what was discussed. inference (0.60): hypotheses and conclusions. task: actionable items.observation
domainNoDomain tag. When omitted, a correction inherits its source domain and a new memory uses this app-v23 agent's owned home domain (legacy nodes use general). Explicit values are never silently remapped.
contentYesThe memory content to store
confidenceNoConfidence score 0-1
replacement_reasonNoOptional audit reason recorded when the replaced memory is challenged.
replaces_memory_idNoOptional committed memory ID this content corrects. The replacement is committed first; only then is the old memory challenged.
Behavior5/5

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

With no annotations provided, the description carries full behavioral disclosure burden. It explains domain fallback behavior across node versions, the commit-then-challenge ordering for replacements, interruption safety guarantees, and fact/observation persistence across boundaries. This is rich, non-obvious behavioral detail.

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 dense but each sentence adds value, from domain handling to replacement semantics to the IMPORTANT type guidance. It is on the longer side but not wasteful; a slight tightening would make it more succinct, yet the structure (normal flow, correction flow, type guidance) is logical.

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 tool with 7 parameters and no output schema, the description covers the critical contexts: domain omission behavior, replacement safety, and type usage. It does not mention return values or error conditions, but given the complexity and the absence of an output schema, the description adequately prepares an agent for invocation.

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?

Even though schema coverage is 100%, the description adds significant meaning beyond property descriptions. It explains what happens when 'domain' is omitted, the semantics of 'replaces_memory_id' including commit ordering and failure behavior, and elaborates type-specific confidence and persistence characteristics that are not in the 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?

The description opens with 'Store a memory in SAGE', a clear verb+resource statement. It immediately distinguishes the tool from siblings like sage_forget and sage_recall by focusing on storing and by describing the replacement flow that avoids a separate forget call.

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 guidance is provided for when to use replacement ('instead of calling sage_forget first') and for choosing type='fact' vs 'observation' with specific examples. This goes beyond generic context to give actionable usage rules and alternatives.

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/l33tdawg/sage'

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