Skip to main content
Glama

bridge_search_files

Search project files by literal text or regex with glob and case filters to locate code or content without opening each file.

Instructions

Fast regex or literal text search across files in a project directory.

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": {
      "root_path": "<root_path>",
      "query": "<query>"
    },
    "name": "bridge_search_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYes
regexNo
root_pathYes
max_matchesNo
glob_patternNo
case_sensitiveNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.2.0

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and mostly does not. It says nothing about read-only safety, whether hidden/binary files are scanned, that matches are capped (max_matches default 60), or how results are ordered or returned.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with no filler or repetition. It is efficient, though its brevity reflects under-specification rather than disciplined density.

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

Completeness2/5

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

For a six-parameter search tool with no annotations, no output schema, and zero schema coverage, the definition is far too thin. An agent cannot tell what filters exist or what a result set looks like before calling it.

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

Parameters2/5

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

Schema description coverage is 0% across six parameters, so the description must compensate and only partly does: 'regex or literal' maps to the regex flag, and 'project directory' maps to root_path. The glob_pattern, max_matches, and case_sensitive parameters are given no meaning in either place, leaving half the surface undocumented.

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?

Names a specific verb (search) plus resource (files in a project directory) and the two search modes (regex or literal), which is more than a restated name. It never names a sibling such as bridge_read_file or bridge_project_tree, so the agent must infer when file search beats reading a known file.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no exclusions, and no alternative named. The agent is told only what the tool does, not when a read/list tool would be the better pick or what happens after a match is found.

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