Skip to main content
Glama
@memoryrelay/mcp-server

@memoryrelay/mcp-server

Official
by memoryrelay

memory_search

Search stored memories using natural language to retrieve semantically relevant results, optionally filtered by project, agent, tier, importance, or similarity threshold.

Instructions

Search memories using natural language. Returns the most relevant memories based on semantic similarity to the query. Omit agent_id to search across all agents.

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": {
      "query": "<query>"
    },
    "name": "memory_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
tierNoFilter by tier: "hot", "warm", or "cold". Omit to search all tiers.
limitNoMaximum number of results to return (1-50)
queryYesNatural language search query
projectNoFilter by project slug. Omit for cross-project search.
agent_idNoOptional agent ID to scope the search. If omitted, searches across all agents.
compressNoEnable context compression on results
thresholdNoMinimum similarity threshold (0-1)
min_importanceNoMinimum importance threshold (0.0-1.0). Only return memories above this.
include_archivedNoInclude archived memories in results (default: false)
max_context_tokensNoTarget total token budget for compressed results
include_confidentialNoInclude confidential memories in results (default: false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It discloses the ranking basis (semantic similarity) and the cross-agent default, which is real value, but says nothing about read-only safety, permission or confidentiality requirements, or how compression and token budgeting affect results.

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?

Three short sentences, front-loaded with the core operation and mechanism. The final sentence largely duplicates the schema's agent_id description ('If omitted, searches across all agents'), which is minor waste.

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

Completeness3/5

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

For an 11-parameter read tool with no annotations and no output schema, the description is thin: it explains the query and agent scoping but leaves tier, threshold, compression, confidentiality, and archived-result behavior entirely to the schema. Adequate to invoke, but not complete for a tool of this complexity.

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 11 parameters are already fully documented in the schema. The description only restates the query and agent_id behavior, adding no syntax, format, or interaction detail (e.g., how threshold interacts with limit) beyond the structured fields.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource ('Search memories') and adds the mechanism ('semantic similarity to the query'), so the operation is unambiguous. It does not differentiate from adjacent siblings such as memory_recall or pattern_search, so an agent cannot route between them on the description alone.

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

Usage Guidelines3/5

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

Usage is only implied by the natural-language/semantic framing plus one scoping hint ('Omit agent_id to search across all agents'). There is no statement of when to prefer this over memory_recall, memory_list, or pattern_search, and no prerequisites or exclusions.

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