Skip to main content
Glama

Search files

search_files
Read-only

Search under a folder either by file name (mode "name", supports * and ?) or by text inside files (mode "content"). Skips node_modules, .git and binary or very large files. Results are capped.

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": {
      "path": "<path>",
      "pattern": "<pattern>"
    },
    "name": "search_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoDefault "name".
pathYesFolder to search in.
deviceNoDevice name. Optional when the account has only one online device.
patternYesName pattern (name mode) or plain text (content mode).
ignore_caseNoDefault true.
max_resultsNoDefault 100, max 500.

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?

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so safety is covered. The description adds real behavioral context beyond that: it skips node_modules, .git, binary and very large files, and warns results are capped, which tells the agent results may be incomplete.

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?

Three short sentences with no padding, and the most important scoping information (search modes) is front-loaded. The trailing 'Results are capped' is slightly vague and could name the retrieval path, keeping it just short of ideal.

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?

Given a read-only tool with full schema coverage and no output schema, the description covers modes, exclusions and the cap, which is most of what an agent needs. The missing piece is guidance on retrieving more than the capped result set, which the sibling get_more_search_results suggests exists.

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 100%, so the baseline is 3, but the description genuinely extends the schema by noting that name mode supports the * and ? wildcards and that pattern means plain text in content mode. That is real added meaning over the schema's own wording, though it doesn't touch device, ignore_case or max_results.

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 (search files under a folder) and enumerates the two operating modes, name vs content, so the agent knows exactly what the tool does. It does not, however, differentiate itself from the nearby start_search / get_more_search_results / stop_search siblings, which look like an overlapping async search family.

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?

Mode selection is implied by describing what each mode does (name matches filenames, content searches inside files), which helps the agent pick a mode. But there is no explicit when-to-use guidance and no routing to alternatives, notably get_more_search_results, which is strongly implied by the 'Results are capped' remark.

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