Skip to main content
Glama

Search memory

search_memory
Read-onlyIdempotent

Search the user's memory vault and return matching notes and captured entries, each with its vault path, capture time, source and evidence reference. A query matches literal words in titles and text; filters narrow results by source, content type and capture date, and order sorts them by newest, oldest or relevance. Without a query, entries are listed by filters alone. Each entry's capturedAt is the original capture time; Log headings can show the later processing time. Entries are paginated: hasMore and nextCursor return the next page for the same query, filters and order, until the vault changes or the server restarts. Note hits are a separate ranked top 20 (hitLimit narrows it, e.g. to the top 5) that ignores entry filters; each note hit has its rank, a matchPercent from 1 to 100 (half how much of the query it contains, weighted by word rarity, half its strength relative to the best hit; relative to this query, not a probability), its vault url (GitHub or Google Drive) and appPath, the path that opens it in the Zenod app. Each result carries its place in the memory tree, and its evidence reference opens with get_memory.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_memory"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum entry page size. Defaults to 20. Note hits retain their independent ranked top-20 contract.
orderNoOrdering. Defaults to relevance for text queries and newest for structural entry queries.
queryNoOptional literal words to match in titles and text, e.g. 'travel insurance'. Without a query, entries are listed by filters and order alone.
cursorNonextCursor from the previous page. Valid with the same query, filters and order, until the vault changes or the server restarts.
sourceNoOptional structural source filter.
hitLimitNoMaximum ranked note hits, e.g. 5 for the top five. Defaults to 20.
sourceIdNoExact stable source/provider identifier for entries.
contentTypeNoOptional structural content-type filter.
capturedAfterNoOptional inclusive ISO-8601 lower bound for the source capture time.
capturedBeforeNoOptional inclusive ISO-8601 upper bound for the source capture time.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/closed-world/non-destructive, yet the description adds substantial behavior beyond them: cursor invalidation on vault change or server restart, the capturedAt vs Log-heading timestamp distinction, and the fact that note hits ignore entry filters. The matchPercent explanation (half containment weighted by word rarity, half relative to the best hit, explicitly 'not a probability') preempts a very likely misinterpretation.

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?

Purpose and the entry-vs-note-hit split are front-loaded, and most sentences carry load-bearing detail about ranking or pagination. It is a single dense block though, with ranking semantics and pagination interleaved mid-paragraph, and the brief aside about Log headings is obscure enough to slow an agent scanning for call parameters.

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?

There is no output schema, so the description carries the full burden of describing return values, and it does so field by field: vault path, captured time, source, evidence reference, rank, matchPercent, vault URL, appPath, hasMore and nextCursor. For a 10-parameter search tool with dual result sets, nothing essential to correct invocation is missing.

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 the baseline would be 3, but the description adds genuine meaning the schema cannot: the independence of hitLimit from limit ('note hits retain their independent ranked top-20 contract'), a concrete hitLimit usage example, and what cursor validity depends on. This meaningfully exceeds restating the property descriptions.

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?

Opens with a specific verb and resource ('Search the user's memory vault') and immediately enumerates the two result families an agent must distinguish: entry hits filtered by source/content type/date, and a separate ranked top-20 note hits list. It also names the sibling that consumes the evidence reference ('opens with get_memory'), so the boundary with another tool is visible without opening schemas.

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?

Explains the two operating modes explicitly: with a query (literal word match, relevance ordering) and without one ('entries are listed by filters alone'), plus how order defaults interact with each. Pagination guidance is clear ('same query, filters and order, until the vault changes or the server restarts'). It lacks an explicit statement of when to prefer a sibling such as ask_brain or get_memory instead, so it stops short of full when-not guidance.

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.