Skip to main content
Glama

Search local files

search
Read-onlyIdempotent

Hybrid search by meaning and exact words across your indexed local files, returning top matching files with their best passages for quick reading and citing. Supports scoped folder filters and paging.

Instructions

Hybrid search (by meaning + exact words) over the user's indexed local files.

Returns the best matching files, best first, each with its best passages (text, section heading, page, chunk number, link). Ranking matches Findling's web app.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of files.
queryYesWhat to look for: a question, keywords, or "exact phrases" in double quotes.
offsetNoSkip this many files (paging, see next_offset).
withinNoOnly search here: the full path of an indexed folder, a folder inside one, or a file (from browse or search results; case is ignored).
max_charsNoBudget for all passage texts together. Each file's best passage comes first; passages that don't fit become short excerpts, files that don't fit move to the next page.

Output Schema

NameRequiredDescriptionDefault
noteNoHint about the result quality, if any.
filesYesBest first.
queryYes
termsYesWords and phrases used for the exact-word search (filler words removed).
totalYesFiles found.
next_offsetNoPass as `offset` to get the next files.
match_qualityYes'words_and_meaning': some files contain the query words. 'meaning_only': none do; results are only the closest by meaning and may be unrelated.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, closed-world and non-destructive, so the safety profile is covered. The description adds genuinely new behavior: results are ordered best-first, each file carries its best passages with heading/page/chunk/link, and ranking is consistent with the Findling web app. It does not discuss empty-result behavior or indexing lag.

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

Conciseness5/5

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

Two sentences, front-loaded with the core operation, then the return shape. Every clause carries information; nothing is redundant with the name or title.

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?

With a full schema, an output schema, and complete annotations, the description only needs to frame the operation and result semantics, which it does. Minor gaps remain around paging interaction and what happens when nothing is indexed or matched.

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

Parameters3/5

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

Schema description coverage is 100%, so every parameter (limit, query, offset, within, max_chars) is already documented in structured form. The description adds no parameter-level meaning beyond the schema — notably it never mentions scoping via 'within' or the max_chars budget that shapes pagination — so the baseline 3 applies.

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?

States a specific verb and resource ('Hybrid search ... over the user's indexed local files') plus the retrieval model (meaning + exact words). It is clearly distinguishable from browse/open/read by being a ranked content search rather than a listing or open operation, though it never names those siblings explicitly.

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 implied by the nature of the tool: use it to find files matching a query. There is no explicit when-to-use or when-not guidance, no mention of when to prefer browse for navigating folders or read for pulling full file contents, and no note about the prerequisite that only indexed files are searchable.

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

Deploy Server

Other Tools