Skip to main content
Glama

find_files

Discover filenames by literal name pattern inside allowed directories with bounded depth and result limits. Find where a file lives under configured read roots without scanning contents.

Instructions

Bounded name-only discovery inside configured Owner read roots.

Use to discover filenames by name under an allowed directory within bounded depth/result count. This is path discovery, not a content search or write authorization.

The search skips protected names, hidden and system entries, and linked entries, so a missing result does not prove a file is absent.

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

Input Schema

NameRequiredDescriptionDefault
nameYesLiteral filename/name pattern to find (1 to 120 characters).
pathYesRoot directory under existing Owner read roots for bounded name discovery.
depthNoMaximum directory traversal depth, 0 to 12; default 8.
max_resultsNoMaximum matches returned, 1 to 100; default 50.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations provided, the description carries the full behavioral burden and does substantial work: it discloses the read-root restriction, depth/result bounds, that protected/hidden/system/linked entries are skipped, and the important caveat that a missing result does not prove absence. It stops short of stating matching semantics (literal vs. glob/substring) or permission requirements, which matter for interpreting results.

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 paragraphs, front-loaded with the core purpose, then usage framing, then the false-negative caveat — each sentence earns its place. The first sentence and the opening of the second are mildly redundant ('name-only discovery' vs 'discover filenames by name'), a minor efficiency cost.

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

Completeness5/5

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

An output schema exists, so return shape need not be explained, and all four parameters are fully documented in the schema. What remains — trust boundary, skip behavior, and the meaning of empty results — is exactly what the description supplies, making it complete for a bounded discovery tool.

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 path, name, depth (0-12, default 8), and max_results (1-100, default 50) are already fully documented in the schema. The description adds the concept of bounding but contributes no parameter meaning beyond what the schema states, making the baseline 3 correct.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource ('discover filenames by name', 'path discovery') and immediately scopes it as name-only rather than content search. The opening line 'Bounded name-only discovery inside configured Owner read roots' plus 'This is path discovery, not a content search or write authorization' lets an agent separate it from read_text_file/search-style siblings without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

It gives explicit use context ('discover filenames by name under an allowed directory within bounded depth/result count') and explicit exclusions (not a content search, not write authorization). It never names a concrete alternative such as list_folder for plain enumeration, so the routing guidance is clear but not fully comparative.

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