Skip to main content
Glama

search_glob

Find files matching a glob pattern recursively in a directory. Supports dotfiles and result limit.

Instructions

Find files matching a glob pattern (recursive).

Args: path: Directory to search in (default current dir). pattern: Glob pattern, e.g. **/*.py, *.txt, src/**/*.json. include_hidden: Include dotfiles (default False). max_results: Cap on number of matches (default 500).

Returns: path, pattern, matches, count, truncated.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNo.
patternNo*
max_resultsNo
include_hiddenNo
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It reveals recursive search, default path, hidden file inclusion, and result cap. Return values are listed. No contradictions or misleading statements.

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 concise: a one-line purpose followed by a structured Args list and Returns summary. Every sentence adds value, no redundancy. Front-loaded with the core action.

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?

For a 4-parameter tool without output schema, the description covers all parameters and return fields. It could mention potential case-sensitivity or glob behavior specifics, but overall it provides sufficient context for correct invocation.

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

Parameters5/5

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

Since the schema has 0% description coverage, the description fully compensates by explaining each parameter's meaning, defaults, and providing concrete examples (e.g., 'Glob pattern, e.g. **/*.py'). This adds significant value beyond the bare schema.

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 'Find files matching a glob pattern (recursive)', which immediately conveys the tool's core function. It distinguishes itself from sibling tools like list_directory (which lists contents) and search_content (which searches file contents) by focusing on glob pattern matching.

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?

The description provides explicit pattern examples (e.g., **/*.py, *.txt) and notes recursive behavior, making it clear when to use this tool. However, it lacks explicit alternatives or when-not-to-use guidance relative to sibling tools.

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/cristopulos/QT_mcp_server'

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