Skip to main content
Glama

Find Files

find_files
Read-onlyIdempotent

Locate files by name or glob pattern across a folder, including relative paths like '.tsx' or 'src/**/test_.py'. Returns matching paths so you can search a filesystem quickly.

Instructions

Find files by name/glob, fast (uses ripgrep when installed).

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

Input Schema

NameRequiredDescriptionDefault
pathNoFolder to search in..
patternYesGlob on file name or relative path, e.g. '*.tsx', 'src/**/test_*.py', 'README*'.
max_resultsNoMax paths to return.
include_ignoredNoAlso search files ignored by .gitignore and heavy dirs.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and a closed-world scope, so safety is covered. The description adds only the ripgrep implementation note, which usefully explains the speed and why .gitignore-aware filtering applies, but says nothing about ordering, hidden-file handling, or what happens when max_results truncates.

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?

A single short sentence with the core purpose front-loaded and no filler. The ripgrep parenthetical is the only extra clause, and it carries informational value rather than noise.

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?

An output schema and rich annotations mean return values and safety need no explanation here, and the schema fully documents parameters. What remains missing is routing guidance among the many file-reading and searching siblings, which matters for a tool with four parameters in a crowded namespace.

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%, with each of the four parameters documented including glob examples and the include_ignored default, so the schema carries the load. The description adds no syntax, path-resolution, or pattern-matching semantics beyond that, making the baseline 3 appropriate.

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 gives a specific verb+resource (find files) and narrows scope to name/glob matching, which implicitly separates it from content search such as search_text. It does not explicitly name a sibling, so it falls just short of a 5.

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 when-to-use or when-not-to-use guidance. The phrase 'by name/glob' faintly implies this is for filename matching rather than content search, but it never says to prefer search_text for contents or list_directory for shallow browsing, and no prerequisites are stated.

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