Skip to main content
Glama

workspace_find_files

Read-only

Find file paths recursively in a workspace using case-sensitive glob patterns, matching basenames or relative paths while skipping dot directories and links.

Instructions

Find file paths recursively by case-sensitive glob, skipping dot directories and links.

Patterns without / match basenames; patterns with / match paths relative to the search directory.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "workspace_find_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoproject/
patternNo*

Output Schema

NameRequiredDescriptionDefault
filesNo
pathsYes
resourcesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.5.1
    • addedInput schema / additionalProperties
      Added value: +false
  2. Addedv0.2.2

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and a closed-world scope, so safety is covered. The description adds real behavioral context beyond that: the search is recursive, case-sensitive, and silently skips dot directories and symlinks — exactly the kind of exclusion an agent would otherwise be surprised by. It stops short of noting result limits or ordering.

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?

Two sentences, no filler, with the core action and the most surprising exclusion (dot directories and links) front-loaded. The second sentence cleanly separates basename from path matching.

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?

With only two parameters and an output schema handling return values, the description is nearly sufficient; an agent knows what gets searched and how patterns resolve. The missing pieces are the default values and the exact glob dialect, plus whether no-match returns empty versus error.

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

Parameters4/5

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

Schema coverage is 0%, so the description must carry the load, and it does: it defines the glob semantics, explains that a pattern without '/' matches basenames while one with '/' matches paths relative to the search directory, and implicitly establishes 'path' as that search root. It never mentions the actual defaults ('project/' and '*') or the supported glob grammar such as '**', which keeps it from a 5.

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

Purpose4/5

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

The description opens with a specific verb and resource ('Find file paths recursively by case-sensitive glob') and adds distinguishing scope detail — recursion, dot-directory skipping, link skipping. It does not name a sibling such as workspace_text_search or workspace_list, so the agent must infer the boundary itself, which keeps it below a 5.

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?

Usage is implied by the pattern semantics (use this to locate files by name shape), but there is no explicit when-to-use versus workspace_list (directory listing) or workspace_text_search (content search), and no statement about when not to use it. The glob rules give practical guidance but not routing guidance.

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