Skip to main content
Glama

Teach the store a vocabulary alias

memory_alias

Declare terms as equivalent in an agent's memory vocabulary so searches bridge wording differences and reach the right facts.

Instructions

Declare that a term and another term mean the same thing in one agent's memory vocabulary, so later memory_search queries bridging the two reach the right facts. Use it when a search missed because your wording and the store's wording differ — the weak-match feedback block names this tool for exactly that case. Alias facts are never returned as memories and can be corrected with memory_reflect like any fact. Returns a confirmation naming the term and its equivalents.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "agent_id": "<agent_id>",
      "term": "<term>",
      "equivalents": "<equivalents>"
    },
    "name": "memory_alias"
  }
}

Input Schema

NameRequiredDescriptionDefault
termYesThe word or phrase as you would naturally write it in a query.
agent_idYesStable agent identifier whose vocabulary this alias belongs to. Pass "__shared__" for project-wide memory.
equivalentsYesThe words or phrases the store actually uses for the same thing; one or more.

Output Schema

NameRequiredDescriptionDefault
termYes
storedYes
agent_idYes
equivalentsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.21.0

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, idempotentHint=false), the description discloses that alias facts are never surfaced as memories and that aliases are correctable via memory_reflect — non-obvious behavioral facts worth knowing before writing. It stops short of covering the non-idempotent behavior the annotations imply (what happens on a duplicate alias declaration), so not a 5.

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?

Four sentences, front-loaded with the core action and effect, then usage trigger, safety/correction, and return value. Each carries information, though the closing sentence on the confirmation partly overlaps with the existing output schema.

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?

With an output schema present and full parameter documentation, the description covers purpose, trigger, lifecycle, and correction path. The remaining gap is edge-case behavior: duplicate alias declarations and whether a new alias replaces or supplements existing ones, relevant given idempotentHint=false.

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 coverage is 100% and the schema already explains term, equivalents, and the __shared__ sentinel in detail. The description reinforces the directionality of term→equivalents and their role in later searches but adds no syntax or format guidance the schema lacks, so 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: 'Declare that a term and another term mean the same thing in one agent's memory vocabulary.' It also states the downstream effect (memory_search queries bridging the two reach the right facts), which distinguishes it cleanly from memory_search, memory_add, and memory_reflect.

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?

Gives an explicit trigger condition ('when a search missed because your wording and the store's wording differ') and even points to the weak-match feedback block as the signal, plus names memory_reflect as the path for correction. An agent knows both when to reach for this and where the undo route lives.

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