Skip to main content
Glama

Search memory

memory_search
Read-only

Full-text search across memory, skills and agents. A plain word matches as a prefix (kal finds kaleidoscope), a file whose path or name contains the query is a hit and comes first, and a name with a small typo is found where the database allows it. Quotes and -word switch to exact search. Between equally good matches the more recently changed one ranks first, and a file marked superseded_by in its frontmatter comes after the current ones, with → superseded by . type, project and tag narrow the search to memory files whose frontmatter says so (metadata.type, metadata.project or the sol-{project}-/proj-{project} file name, metadata.tags). Returns the best matches, each with the day it last changed and a short snippet; the snippet only points at a hit, so read the hit itself before answering from it. The index (MEMORY.md) and the history days come after the notes. A memory file is also found by its meaning, in any language, when none of its words are in the query: such a hit is marked meaning, and its snippet is the description or the start of the file, not a match. expand=links adds, under each of the first five, the files, skills and agents it links to and that link to it (← marks those).

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
tagNoOnly memory files carrying this tag.
typeNoOnly memory files of this metadata.type, e.g. solution, project, feedback.
limitNoHow many hits at most, 1 to 50. Default 20.
queryYesWhat to look for. Plain words match as prefixes; quotes and -word switch to exact search.
typesNoComma-separated subset of memory, skill, agent. Default: all three.
expandNolinks: name the direct links of the first five hits. Default none.
projectNoOnly memory files about this project.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / limit / maximum
      Added value: +50
    • addedInput schema / properties / limit / minimum
      Added value: +1
    • changedInput schema / properties / limit / type
      Previous value: -"string"New value: +"integer"
  2. Changed4 schema fields changed
    • addedInput schema / properties / expand
      Added value: +{
      +  "description": "links: name the direct links of the first five hits. Default none.",
      +  "type": "string"
      +}
    • addedInput schema / properties / project
      Added value: +{
      +  "description": "Only memory files about this project.",
      +  "type": "string"
      +}
    • addedInput schema / properties / tag
      Added value: +{
      +  "description": "Only memory files carrying this tag.",
      +  "type": "string"
      +}
    • addedInput schema / properties / type
      Added value: +{
      +  "description": "Only memory files of this metadata.type, e.g. solution, project, feedback.",
      +  "type": "string"
      +}
  3. Changed1 schema field changed
    • changedInput schema / properties / query / description
      Previous value: -"What to look for. Plain words; quotes and -word work."New value: +"What to look for. Plain words match as prefixes; quotes and -word switch to exact search."
  4. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint; the description adds substantial behavior beyond them: prefix matching, typo tolerance, recency tie-breaking, superseded_by demotion with an arrow marker, semantic 'meaning' hits in any language, and what expand=links injects with ← markers. This is unusually rich disclosure for a read tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded and little is wasted, but the body is one dense, run-on block covering ranking, filters, return shape and expand in a single breath, which makes it hard to scan. Sentence boundaries could be split to surface the query-syntax and filter rules separately.

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

Completeness5/5

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

With seven parameters, no output schema and no enum constraints, the description carries the full burden and delivers: it describes what a hit contains (last-changed day, snippet), how meaning hits differ, where superseded and index/history results rank, and what expand adds. An agent could call this correctly without further information.

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

Parameters4/5

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

Schema coverage is 100%, so baseline would be 3, but the description adds meaning the schema lacks: it explains how type/project/tag map onto the sol-{project}-/proj-{project} filename convention and metadata.tags, and what the ← marker means in expand=links output. Only limit and types get no extra explanation beyond their schema entries.

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 opening sentence states a specific verb and scope: 'Full-text search across memory, skills and agents,' which clearly separates it from list_memory and memory_read. It never names those siblings explicitly, but the resource and operation are unambiguous.

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

Usage Guidelines4/5

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

It gives concrete conditions for how queries behave (plain word = prefix, quotes/-word = exact) and an explicit follow-up instruction to read the hit itself rather than answer from the snippet. It stops short of naming alternative tools or stating when not to use search.

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.

Resources