Skip to main content
Glama

file_search

Search file and folder names and extracted contents across storage using forgiving matches, tag filters, and ranked results with text snippets.

Instructions

Search file/folder names AND (by default) inside extracted file contents within a storage. Name matching is forgiving: ., -, _ and a space are interchangeable (invoice 2026 finds invoice_2026.pdf), every word must match, and one typo is tolerated. A query may carry tag:<name> / -tag:<name> filters, which narrow to (or exclude) files carrying that tag - your personal tag of that name or your team's, both count; a tag that does not exist returns nothing. Results are ranked: exact filename, prefix, name, path, fuzzy, then content-only. Content hits include a plain-text snippet with matches wrapped in « ». Pass content=false for the old name-only behavior.

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

Input Schema

NameRequiredDescriptionDefault
mimeNoonly mime types starting with this (image/, application/pdf)
pathNoadapter:// scope for the search; empty = first storage
typeNoonly this kind: file, dir, document, spreadsheet, presentation, pdf, image, video, audio, archive, code, text or other
ownerNome, system (nobody put it there through filex) or an account id
queryYestext to match against file/dir names (and file contents unless content=false); separators and typos are forgiven, and tag:NAME / -tag:NAME filter by tag
underNoonly inside this folder (adapter://dir or a storage-relative path)
hiddenNofalse drops names starting with a dot; default keeps them
contentNoalso match inside extracted file contents and return snippets (default true)
max_sizeNoat most this many bytes
min_sizeNoat least this many bytes (folders never match a size bound)
not_underNoonly outside this folder
modified_afterNomodified at or after: RFC 3339, YYYY-MM-DD or unix milliseconds
modified_beforeNomodified at or before: RFC 3339, YYYY-MM-DD or unix milliseconds

Output Schema

NameRequiredDescriptionDefault
entriesYes

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?

With no annotations supplied, the description carries the full burden and discharges much of it: it discloses forgiving name matching rules, typo tolerance, tag resolution logic (personal or team tags, nonexistent tag returns nothing), the exact ranking order of result classes, and that content hits include snippets with matches wrapped in « ». It does not mention result limits, pagination, or permission scoping, which are the notable remaining gaps.

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?

The description is front-loaded with purpose and then layers matching rules, tag syntax, ranking, and snippet format, with no filler sentences. It is dense and packs several distinct rules into a single paragraph, which makes it slightly harder to scan than a bulleted or sentence-per-concept structure, but nothing is wasted.

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 a 13-parameter search tool with full schema coverage and an output schema, the description covers the non-obvious semantics an agent actually needs: matching normalization, tag filters, ranking, and snippet delimiters. The missing pieces relative to a mature definition are result-set size, pagination, and permission scope, which are neither in the description nor evidently covered elsewhere.

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 description coverage is 100%, so the schema already documents all 13 parameters and the baseline would be 3. The description still adds genuine semantics on top: how the query string is normalized (`.`, `-`, `_`, space interchangeable), that every word must match, that one typo is tolerated, and the inline tag:NAME / -tag:NAME filter syntax. That is meaningful beyond what the schema states.

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 opens with a specific verb and scope: 'Search file/folder names AND (by default) inside extracted file contents within a storage.' That cleanly separates this from list-style siblings such as file_list or file_info, and the content=false clause clarifies the alternate mode. It stops short of naming a sibling it is not, so it misses the top mark.

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?

There is real guidance on how to invoke it ('Pass content=false for the old name-only behavior') and on how tag filters behave, which is more than a bare description. But nothing states when to choose file_search over file_list, file_info or file_read, and no prerequisites or exclusions are given. Usage is implied by the feature list rather than spelled out.

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