Skip to main content
Glama

Search Memory

memory_search

search stored memories by hybrid ranking, combining semantic similarity, importance, recency, frequency, and pin boost, to retrieve the most relevant past context for a query.

Instructions

Hybrid ranked search over stored memories (semantic similarity + importance + recency + frequency + pin boost).

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
tagsNo
typeNo
limitNo
queryYes
user_idNo
namespaceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/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 burden, and it does disclose something valuable beyond structured fields: that results are ranked by a hybrid of semantic similarity, importance, recency, frequency, and pin boost. However, it says nothing about scope isolation (does the search span all users/namespaces?), default or maximum result counts, empty-result behavior, or whether this is a pure read. These are real gaps for a six-parameter retrieval tool.

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?

A single front-loaded sentence with no filler, and the ranking detail is placed where it is most useful. Brevity is appropriate, though the space saved was not reinvested in parameter or scoping guidance.

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?

For a six-parameter tool with no annotations and no output schema, one sentence is thin. Critical calling information is missing: how user_id/namespace scope results, what tags and type filtering do, and what the return payload looks like. The description is not incorrect, just insufficient for correct invocation.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate, and it does not: none of the six parameters (query, tags, type, limit, user_id, namespace) are explained. The parenthetical lists ranking factors, none of which are actual parameters, so it adds no meaning about how to invoke the tool. The type enum is partly self-documenting but filter semantics and scope parameters remain opaque.

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?

States a specific verb and resource ('hybrid ranked search over stored memories') and even names the ranking signals, so an agent knows exactly what operation this performs. It does not distinguish itself from siblings like memory_list or memory_related, which also surface stored memories, so it stops short of a 5.

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?

There is no explicit when-to-use or when-not-to-use guidance and no mention of alternatives such as memory_list or memory_related. Retrieval intent is only implied by the word 'search'.

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