# Glob Pattern Tester — REST API endpoint `glob-pattern-tester`

Returns which file paths match a glob pattern and which do not. Supports * and ** wildcards, ? single characters, [abc] character classes, {a,b} brace expansion and a leading ! for negation. A pattern without a slash also matches against the file basename.

- Category: developer
- MCP server: https://mcp.findutils.com/ (Streamable HTTP, no API keys, 120 req/min per IP)
- REST endpoint: POST https://api.findutils.com/api/tools/glob-pattern-tester/execute (no API keys, 60 req/min per IP)
- Reference page: https://findutils.com/api/glob-pattern-tester/
- Same tool on the other surface: https://findutils.com/mcp/glob-pattern-tester/

## Call the endpoint (verified example)

```bash
curl -X POST https://api.findutils.com/api/tools/glob-pattern-tester/execute \
  -H "Content-Type: application/json" \
  -d '{
    "pattern": "**/*.ts",
    "files": [
      "src/index.ts",
      "README.md"
    ]
  }'

# Parameter schema
curl https://api.findutils.com/api/tools/glob-pattern-tester
```

## Input schema

| Argument | Type | Required | Description |
|---|---|---|---|
| `pattern` | string | yes | The glob pattern to test, e.g. "src/**/*.ts" or "*.{jpg,png}". |
| `files` | array | yes | File paths to test. An array of strings (a newline-separated string is also accepted). |

Example arguments (verified):

```json
{
  "pattern": "**/*.ts",
  "files": [
    "src/index.ts",
    "README.md"
  ]
}
```

OpenAPI 3.1 spec: https://findutils.com/api/openapi.json · Interactive docs: https://findutils.com/api/docs/

## Also an MCP tool

```bash
claude mcp add findutils --transport http https://mcp.findutils.com/
```

Then ask the client to call `findutils:glob_pattern_tester`. Full MCP reference: https://findutils.com/mcp/glob-pattern-tester/

---
Full catalog: GET https://api.findutils.com/api/tools · https://findutils.com/api/ · https://findutils.com/llms.txt
