Skip to main content
Glama

file_search

Read-only

Search a folder and everything below it by name, path and document text. Results come from an index on the workspace VM, so they can lag the drive; meta.index says how far behind it is. Paths with any segment starting with "." and derived folders such as node_modules are never indexed, so no result does not mean no file. Terms of two letters or more match by word prefix; a one-letter term matches that whole word only. "voice" does not find "invoice". Text is read only from pdf, docx, pptx, xlsx, md, txt, csv and html files.

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": {
      "workspaceSlug": "<workspaceSlug>",
      "path": "<path>"
    },
    "name": "file_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
queryNo
workspaceSlugYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Adds substantial behavior beyond the annotations: the index lives on the workspace VM, lags the drive, exposes meta.index for staleness, and silently skips dot-prefixed segments and derived folders such as node_modules. It also discloses tokenization rules (two-letter terms match by word prefix, one-letter terms match whole words) and which file types have extractable text. It does not explain pagination or error behavior, keeping it short of 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.

Conciseness4/5

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

Front-loaded with what the tool searches, then caveats, then matching rules – a logical order with no filler. It is dense and packs several distinct rules into a single paragraph, which is efficient but slightly hard to scan.

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 nested query object with seven fields and no output schema, the description covers the highest-risk behaviors (staleness, exclusions, tokenization, text-extractable types) and even names a return field (meta.index). Missing: result shape and pagination via cursor.

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?

With 0% schema description coverage the description must carry parameter meaning, and it does explain the matching semantics of the core `search` term and the prefix/one-letter rules. It says nothing about `workspaceSlug`, `path` scoping edge cases, `limit`, `cursor`, or the modified date bounds, so coverage is partial rather than complete.

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 plus scope: 'Search a folder and everything below it by name, path and document text.' It is clearly distinguishable from browsing tools like file_list, though it never names a sibling 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?

Gives useful decision context – results can lag the drive, excluded folders mean 'no result does not mean no file' – which tells the agent when not to trust an empty result. However, it never says when to prefer a different tool (file_list to browse, file_get/file_stat for exact truth), so routing must be inferred.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources