Skip to main content
Glama

search

Read-only

Find notes and memories in the vault by keywords, tags, type, project, zone, or status to locate relevant context, with snippets and line references.

Instructions

Full-text search over the vault (notes and memories), best matches first.

With no query, lists the notes matching the filters. If no note has all the words, retries with any of them ("match": "or", "note"); with 1-2 hits and 2+ words, "partial" lists up to 5 more notes with some of the words. With match="any" or after that retry, each row carries "matched": the words it has. Returns JSON {"results": [{"path", "title", "line", "snippet", "score", and when set "zone", "type", "status", "project", "created", "priority", "heading", "superseded_by"}], "total"}. line is the 1-based line of the first match; open it with read(path, lines=...). With no results, "hints" says which filter matches nothing. facets=true adds "facets": counts by zone, project, type, status and tags.

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

Input Schema

NameRequiredDescriptionDefault
pathNoPath prefix, e.g. docs/claude-code.
tagsNoTags the note must all have; `dominio:x` is read as `dominio/x`. Tags span projects: use them without project to follow a topic across projects.
typeNoFrontmatter type. Memories: decision, lesson, error, constraint, preference, session, reminder, insight. Documentation uses others, e.g. reference.
zoneNoOnly notes of this zone, as in episteme.toml, e.g. "memory" (memories) or "docs/claude-code".
limitNo1-100.
matchNo"all" (default): every word must appear. "any": notes with any of the words, best first, each row listing the ones it has in "matched". Use "any" to look up several names or variants of a word in one call.all
queryNoWords that must all appear (AND; any of them with match="any"); "quoted text" is a phrase; `a-b` is the words a and b; `word*` matches any word starting with it. Case and accents are ignored. Optional when tags, type, project, zone or facets is given.
facetsNoAlso return counts by zone, project, type, status and tag; alone, it lists what the vault has.
statusNoactive, speculative, superseded or archived. Default: everything except superseded and archived memories; "any" includes them (rows then carry status and superseded_by).
projectNoFrontmatter project; "_shared" memories are included. Optional.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.16.0

TDQS

A4.6/5.0
Behavior5/5

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

readOnlyHint is already set, yet the description adds substantive behavior: the automatic OR retry with "match": "or", the "partial" mode with up to 5 additional notes, per-row "matched" words, the JSON result envelope, and "hints" naming which filter matched nothing. That is real context an agent cannot get from the readOnlyHint annotation alone.

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 is front-loaded in one line, and the rest is dense but information-bearing. Some phrasing is awkward and circular ("With match=\"any\" or after that retry, each row carries \"matched\""), and the fallback rules could be ordered more cleanly.

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?

No output schema exists, and the description compensates by specifying the returned JSON keys, what `line` means, and the facets and hints extensions. With 10 optional parameters all documented in the schema, nothing an agent needs to call it correctly 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 3 is the floor; the description goes beyond it by explaining how `match` triggers fallback modes and introduces a "partial" behavior not enumerated in the schema. It also restates useful defaults (status excludes superseded/archived unless "any").

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: "Full-text search over the vault (notes and memories), best matches first." It also implicitly contrasts itself with the `read` sibling via "open it with read(path, lines=...)", so an agent knows search locates lines and read fetches them.

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?

Gives clear when-to-use context: with no query it lists notes matching filters; "Use \"any\" to look up several names or variants of a word in one call"; tags span projects so they can be used topic-wise. No explicit when-not-to-use or exclusion beyond the read hand-off, so not a 5.

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