Skip to main content
Glama

glob_files

Locate files by pattern across a directory tree. Provide a pattern and optional base directory to search from.

Instructions

Find files matching a glob pattern (e.g. '/*.ts', 'src//*.py').

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
patternYesGlob pattern (e.g. '**/*.py', 'src/**/*.ts', '*.json').
base_pathNoDirectory to search from (default: current directory)..

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations provided, the description carries the full burden. It states the core operation and gives examples, but does not disclose whether the search is recursive by default, how results are returned, or other behavioral details. This is adequate for a simple read-only tool but lacks depth.

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 sentence that directly states the purpose and provides useful examples. It is front-loaded and contains no fluff, making it easy for an agent to parse quickly.

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?

The tool is simple with two well-documented parameters and an output schema, so the description covers the essential purpose. However, it lacks any usage guidance or behavioral caveats, which is a minor gap for a context-complete description.

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?

The input schema fully describes both parameters ('pattern' and 'base_path') with their meanings, so the description adds little beyond examples already present in the schema. Baseline 3 is appropriate given 100% schema coverage.

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 clearly states the tool's purpose with the verb 'Find' and resource 'files', and provides concrete glob pattern examples ('**/*.ts', 'src/**/*.py'). This makes the tool's function specific and distinguishes it from sibling tools like list_directory or search_code.

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 for finding files by glob pattern but does not explicitly state when to use this tool over alternatives such as list_directory or search_code. No exclusions or alternative tool references are provided, so guidance is implicit.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pranjal2410719/dev-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server