Skip to main content
Glama

find

Search locally indexed documents, code, and memories with hybrid semantic and keyword matching to retrieve relevant excerpts before web research or answering rationale questions.

Instructions

Use find before web research or answering rationale questions.

Use find before WebSearch or WebFetch for research, or before answering a why/how/what-did-we-decide question. Prefer grep for symbol and value lookups; prefer find for meaning.

Combines vector similarity and BM25 full-text search via Reciprocal Rank Fusion (RRF) for better recall on both meaning and exact terms.

Args: query: Natural language search query. limit: Maximum number of results (default 10, max 50). document_filter: Optional exact document name to filter by. collection: Optional collection name to search within. page_type: Optional content type filter (text, code, spreadsheet, etc.). source_format: Optional source format filter (.pdf, .py, .xlsx, etc.). agent_handle: Your own handle to recall only your memories (e.g. "rmh"); leave empty to search everything. memory_type: Optional memory type filter (fact, observation, lesson, etc.).

Returns: Ranked excerpts with document, page, collection, and relevance metadata; an empty result report means no indexed content matched. Input refusals, daemon errors, and unexpected failures return Error: ... text. Connection failures include recovery guidance.

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

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYes
page_typeNo
collectionNo
memory_typeNo
agent_handleNo
source_formatNo
document_filterNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

A4.3/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden, and it mostly does: it discloses the retrieval mechanism, the result shape, the meaning of an empty result set, and the error formats including connection-failure recovery guidance. It omits any statement about cost, latency, or side effects, which keeps it below a 5.

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?

The Args/Returns block structure is clear and front-loaded, but the opening guidance is stated twice ('Use find before web research...' then 'Use find before WebSearch or WebFetch...'), which wastes space on a repeated instruction rather than adding information.

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

Completeness4/5

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

For an eight-parameter search tool with no annotations, the description covers selection guidance, every parameter, and error behavior, and an output schema exists so return values need not be spelled out. The remaining gap is that sibling tools like list or show are never addressed as alternatives.

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

Parameters5/5

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

Schema coverage is 0%, so the description must compensate, and it does for all eight parameters, adding meaning the schema lacks: the limit default of 10 and a max of 50, that document_filter is an exact name match, concrete examples for page_type, source_format, and memory_type, and a usage example for agent_handle. This is materially more than the bare schema.

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 states a specific verb and resource: a search tool that combines vector similarity and BM25 full-text search via Reciprocal Rank Fusion. That is concrete and distinguishes it from exact-match approaches it names. It does not differentiate itself from the listed siblings (list, show, insights), so it falls 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 Guidelines5/5

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

It explicitly names alternatives (grep, WebSearch, WebFetch) and the condition that selects this tool over them: 'prefer grep for symbol and value lookups; prefer find for meaning.' It also gives a timing rule ('use before web research or answering rationale questions'), leaving nothing to inference.

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