Skip to main content
Glama

search_files

Recursively find files and folders by case-insensitive name pattern within a root path, with an optional result limit.

Instructions

Recursively search for files/folders whose name contains a given pattern (case-insensitive).

Input Schema

NameRequiredDescriptionDefault
patternYes
root_pathYes
max_resultsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.3

TDQS

C2.9/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses that the match is recursive, name-only (not content), and case-insensitive — but says nothing about hidden files, permission errors, result ordering, or whether max_results truncation is signaled.

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?

A single front-loaded sentence with no filler; the matching semantics are stated up front. It is lean to the point of under-specification, but no sentence is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-parameter tool with zero annotation coverage, no output schema, and 0% schema description coverage, the description leaves too much open: max_results behavior, root_path expectations, and result shape are all unaddressed.

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

Parameters2/5

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

Schema description coverage is 0% and there are three parameters, yet the description explains only 'pattern' (substring, case-insensitive). root_path and especially max_results are left completely undefined in both the schema and the description.

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 ('Recursively search for files/folders') plus the matching semantics ('name contains a given pattern', case-insensitive). An agent can distinguish this from list_directory or directory_tree, though the description 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 Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use or when-not guidance and no mention of alternatives such as list_directory, directory_tree, or read_file. The recursive-by-name scope only implicitly suggests when this tool is the right pick.

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