Skip to main content
Glama
eduardoddddddd

DesktopCommanderPy

search_files

Find files by name pattern or content substring. Specify root directory and optional glob or text search to retrieve matching paths.

Instructions

Search for files by name pattern and/or content substring.

  • pattern is matched against file names using glob syntax OR substring match.

  • content_search scans file contents (text files only, skips binary).

  • Returns a list of matching absolute paths with optional match context.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rootYesAbsolute path to directory to search in.
patternYesGlob pattern (e.g. '*.py') or substring to match in file names.
content_searchNoOptional text to search inside file contents. Empty = skip content search.
case_sensitiveNoSet to true for case-sensitive matching. Default false.
max_resultsNoMaximum number of results to return. Default 100.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

The description adds valuable behavioral context: it specifies that content_search only scans text files (skips binary), and returns matching absolute paths with optional match context. Since no annotations are provided, this description carries the full burden and does so well, although it could mention that the tool is read-only and non-destructive.

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 (5 lines) with bullet points. It is front-loaded with the core purpose, then details in a structured list. Every sentence serves a clear purpose, no fluff.

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?

Given the existence of an output schema (details of return values), the description provides adequate context: it mentions both name and content search, parameter roles, and the result format. It could benefit from a brief note on performance or limits beyond max_results, but overall it is complete for a search tool.

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 covers all 5 parameters with descriptions (100% coverage). The tool description adds some nuance (e.g., 'pattern' uses glob or substring, content_search is text-only) but mostly repeats schema information. The clarification about binary skipping in content_search adds marginal value, keeping this at baseline 3.

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 states 'Search for files by name pattern and/or content substring' which is a specific verb+resource+scope. It clearly separates two search modes (name pattern and content substring) and mentions the return format (absolute paths with optional context). This distinguishes it from siblings like list_directory (simple listing) and read_file (reading full content).

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?

While the description effectively explains what the tool does, it does not provide explicit guidance on when to use this tool over alternatives. It implies usage for file searching but does not mention exclusions (e.g., when to use other tools like execute_command with grep) or context-specific recommendations.

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/eduardoddddddd/DesktopCommanderPy'

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