Skip to main content
Glama

glob

Find files matching glob patterns with recursive directory support, returning sorted paths while skipping hidden and vendor directories.

Instructions

Finds files matching a glob pattern. Supports ** for recursive directory matching. Returns matching file paths sorted by modification time (newest first). Skips hidden directories (.git, etc.) and common vendor directories. Use relative_paths=true to return paths relative to the search directory (saves tokens).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
patternYesGlob pattern to match files (e.g. **/*.go or src/**/*.ts)
pathNoDirectory to search in (absolute path). Defaults to current directory if empty
relative_pathsNoReturn paths relative to the search directory instead of absolute paths. Saves tokens in output. Default: false

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/knewstimek/agent-tool'

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