Skip to main content
Glama
Bridge Commander
by PaPasha215

search_files

Read-onlyIdempotent

Locate files and directories by name pattern or glob such as *.py, skipping hidden folders, .git, and node_modules unless include_hidden is set.

Instructions

Find files and directories whose name contains pattern (or matches a glob like *.py). Skips hidden dirs, .git and node_modules unless include_hidden.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "path": "<path>",
      "pattern": "<pattern>"
    },
    "name": "search_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
patternYes
timeout_msNoMilliseconds to wait for output.
max_resultsNo
include_hiddenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and closed-world behavior, so the safety profile needs no repetition. The description still adds genuine value by disclosing default exclusions (.git, node_modules, hidden dirs) and the include_hidden escape hatch, which an agent cannot infer from schema or annotations. It omits truncation/max_results behavior and what a no-match result looks like.

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 dense sentences with no waste, leading with the core matching behavior and following with the exclusion rule that most affects results. Nothing redundant with the name or annotations.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only search with no output schema, the description covers matching and default exclusions but leaves the return shape and result-limit behavior unstated. An agent cannot tell whether results are capped, whether truncation is signaled, or how to page further (get_more_search_results is never referenced).

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?

Schema description coverage is only 20% across 5 parameters, so the description must carry more weight. It does explain pattern semantics (substring vs glob) and include_hidden's effect, but path, max_results, and the interaction between max_results and truncation go unexplained.

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 gives a specific verb ('Find') and resource ('files and directories'), and it pins down the matching semantics ('name contains pattern' or glob like *.py). It distinguishes name-based search from content search implicitly, but never names a sibling such as search_code or list_directory to make the contrast explicit.

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 phrase 'whose name contains pattern' versus glob syntax, which hints that this is a filename search rather than a content search. There is no explicit statement of when to prefer search_code, list_directory, or get_more_search_results, and no mention of prerequisites like the base path requirement.

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