Skip to main content
Glama

Search memory

search_memory
Read-only

Searches the persona's memory and returns the most relevant entries.

Combines keyword search, BM25 and embeddings, ranks the results by
importance and returns those above the relevance threshold. With
`project_scope`, only the general memory and that project are searched.

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": "search_memory"
  }
}

Input Schema

NameRequiredDescriptionDefault
kNo
queryYes
persona_slugNo
project_scopeNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / persona_slug / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / persona_slug / default
      Previous value: -"soov"New value: +null
    • removedInput schema / properties / persona_slug / type
      Removed value: -"string"
  2. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare a safe read (readOnlyHint=true, destructiveHint=false, openWorldHint=false), so the bar is lower, but the description still adds real value: it discloses the hybrid retrieval strategy, that results are importance-ranked, and that entries below a relevance threshold are dropped. That last point matters because it implies the caller may receive fewer than k results, though the description does not say so explicitly.

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 purpose, then mechanism, then the one parameter worth calling out. No filler, though the distinct behavior of dropping sub-threshold results could have been folded into the first sentence for tighter scanning.

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?

An output schema exists, so return values need no explanation, and the safety profile is covered by annotations. What remains missing is meaningful for a search tool: what k actually caps, whether fewer results can come back due to the threshold, and what persona_slug=null means when the tool is persona-scoped.

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 carry parameter meaning and it mostly does not. It explains only project_scope; query, k (default 8), and persona_slug (null default, presumably defaulting to the current persona) are left entirely unexplained, which leaves most of the surface undocumented in both places.

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 ('Searches the persona's memory') and goes further to explain the retrieval mechanism (keyword, BM25, embeddings) and the ranking policy. It does not explicitly differentiate itself from siblings such as reindex or the get_*/list_* tools, 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 Guidelines3/5

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

Usage is only implied through the project_scope explanation ('only the general memory and that project are searched'), which tells an agent how scoping narrows the search. There is no explicit when-to-use versus alternatives, no guidance on when not to scope by project, and no prerequisites for the persona_slug.

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.