Skip to main content
Glama

find_files

Find files in a directory by pattern, with recursive search and file type filters. Specify a path and pattern to locate matching files or directories quickly.

Instructions

Search for files matching a pattern in a directory

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesStarting directory path
patternYesFile pattern to match (e.g., '*.py', 'test*.txt')
file_typeNoFilter by type: 'file' or 'directory' (optional)
recursiveNoSearch recursively (default: true)
max_resultsNoMaximum number of results (default: 100)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.3/5.0
Behavior2/5

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

Annotations are absent, so the description must carry the behavioral disclosure burden. It only states the high-level action and does not mention recursion defaults, return format, hidden-file handling, error behavior, or whether matches are paths or full objects. This leaves significant behavioral ambiguity for an agent.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

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

The description is a single, focused sentence with no redundant words. It front-loads the action and the object, making it easy for an agent to parse quickly. Every word contributes to the core meaning.

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

Completeness3/5

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

For a tool with no output schema and no annotations, the description is minimal but arguably usable for basic cases. It does not explain the result shape, whether paths are absolute or relative, or how recursion and result limits behave beyond what the schema already states. This is adequate for a simple find operation but not complete for confident autonomous invocation.

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

Parameters3/5

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

Schema description coverage is 100%, so the parameters are already well documented. The description adds only the generic idea of matching a pattern and a directory, which maps to path and pattern, but provides no extra semantic detail beyond the schema.

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 clearly states the action ('Search') and the resource ('files matching a pattern in a directory'), which makes the main purpose immediately understandable. It does not explicitly distinguish itself from siblings like get_directory_listing, but the pattern-matching wording provides enough differentiation.

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?

The description implies usage: use this tool when you need to find files by pattern. However, it does not provide explicit when-to-use or when-not-to-use guidance, nor does it compare against the close sibling get_directory_listing. The usage context is clear only at a basic level.

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