Skip to main content
Glama

Search documents (typo-tolerant)

search_fuzzy
Read-onlyIdempotent

Find documents when a search term may be misspelled, using typo-tolerant similarity matching across indexed files and folders. Use it as a fallback when exact search returns nothing.

Instructions

Typo-tolerant search (trigram similarity) over the same documents. USE THIS ONLY when search_documents finds nothing or a term may be misspelled (e.g. 'lantren' finds 'lantern'); it is slower and less precise. Read-only. Covers only the folders indexed by RootMind that this connection may access, as of the last indexing run (files changed since may be missing). Pass the possibly misspelled term as query; min_similarity (0.1-1.0) trades recall for precision; the filters work as in search_documents. Returns up to limit hits with a similarity percentage, file name, ID, folder, snippet and a suggested read_document window; for more, raise limit.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of results (1-50, default 10).
queryYesSearch term, typos allowed. Finds similar words.
folderNoOptional: only documents in this indexed folder, by its name, case-insensitive (e.g. 'Unterlagen'; get_statistics lists the folders).
file_typeNoOptional: only this file type, as the lowercase extension without a dot (pdf, docx, xlsx, pptx, md, txt, csv, ...).
min_similarityNoMinimum similarity 0.1-1.0 (default 0.3). Higher means fewer but closer matches.
modified_afterNoOptional: only documents modified on or after this date (YYYY-MM-DD).
modified_beforeNoOptional: only documents modified on or before this date (YYYY-MM-DD).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.10.1
    • changedInput schema / properties / file_type / description
      Previous value: -"Optional: filter by file type, e.g. pdf, docx, xlsx, pptx, md, txt, csv"New value: +"Optional: only this file type, as the lowercase extension without a dot (pdf, docx, xlsx, pptx, md, txt, csv, ...)."
    • changedInput schema / properties / folder / description
      Previous value: -"Optional: only documents in this indexed folder, by its name (e.g. 'Unterlagen'; get_statistics lists the folders)."New value: +"Optional: only documents in this indexed folder, by its name, case-insensitive (e.g. 'Unterlagen'; get_statistics lists the folders)."
  2. Changed3 schema fields changedv2.10.0
    • addedInput schema / properties / folder
      Added value: +{
      +  "description": "Optional: only documents in this indexed folder, by its name (e.g. 'Unterlagen'; get_statistics lists the folders).",
      +  "type": "string"
      +}
    • addedInput schema / properties / modified_after
      Added value: +{
      +  "description": "Optional: only documents modified on or after this date (YYYY-MM-DD).",
      +  "type": "string"
      +}
    • addedInput schema / properties / modified_before
      Added value: +{
      +  "description": "Optional: only documents modified on or before this date (YYYY-MM-DD).",
      +  "type": "string"
      +}
  3. First observedv2.6.1

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond annotations by disclosing cost/precision tradeoffs, the index scope limitation ("only folders indexed... as of the last indexing run; files changed since may be missing"), and the full return payload including similarity percentage and suggested read_document window. This is exactly the operational context readOnlyHint cannot convey.

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?

Front-loaded with purpose and usage restriction, then scope caveat, then parameters and returns; nearly every clause carries information. Slight redundancy in restating "Read-only." which annotations already declare, and the final sentence is dense with multiple ideas.

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 no output schema, the description still enumerates the return fields and suggests raising `limit` for more results, and it flags the staleness risk of the index. Nothing material for correct invocation is missing for a 7-parameter read tool.

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 already 100%, so baseline is 3; the description adds real value by telling the agent to pass the possibly misspelled term as `query` and framing `min_similarity` as a recall-vs-precision dial rather than just a range. "The filters work as in search_documents" usefully cross-references sibling semantics, though filter parameters themselves are not elaborated.

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?

States a specific verb and resource ("Typo-tolerant search (trigram similarity) over the same documents") and distinguishes itself from search_documents by naming the sibling and the mechanism. An agent can identify exactly what this tool does without opening the schema.

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?

Explicitly says "USE THIS ONLY when search_documents finds nothing or a term may be misspelled," names the alternative, gives a concrete example ('lantren' -> 'lantern'), and states the tradeoff (slower, less precise). Both the when-to-use and when-not-to-use conditions are spelled out.

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