Skip to main content
Glama
Bridge Commander
by PaPasha215

start_search

Read-onlyIdempotent

Run a background search across file names or file contents, returning initial matches within a timeout; page results for large trees or stop the search early.

Instructions

Start a background search and return the first results within timeout_ms (default 3000). search_type=files matches names (substring or glob like *.py); search_type=content searches inside files (regex, or literal=true). Use for big trees: page with get_more_search_results, end early with stop_search.

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": "start_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
literalNo
patternYes
timeout_msNoMilliseconds to wait for output.
ignore_caseNo
max_resultsNo
search_typeNo
file_patternNo
context_linesNo
include_hiddenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the bar is lower, and the description still adds real behavior: the call is asynchronous, returns only the first results within timeout_ms (default 3000), and results may be incomplete and require paging or early termination. It does not state what happens to the still-running search if the caller never pages or stops it, nor the result shape.

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?

Three dense sentences, front-loaded with what the tool does and the timeout contract, followed by the two mode semantics and then the sibling routing. No filler or restated name/title.

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 10-parameter tool with 10% schema coverage and no output schema, the description covers the discriminating parameters (search_type, pattern, literal, timeout_ms) and the lifecycle (page/stop) but leaves six parameters undocumented and says nothing about how results are returned or limited. Adequate to invoke correctly for a basic call, insufficient for full parameter use.

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 10% (only timeout_ms is annotated), so the description must compensate, and it does for the most important parts: search_type enum semantics (files = name matching, content = in-file search), pattern format (substring or glob like *.py, regex by default with literal=true escape), and the timeout default. It leaves path, max_results, file_pattern, context_lines, ignore_case, and include_hidden entirely unexplained in both schema and description.

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?

States a specific verb and resource ('start a background search') plus its distinguishing trait from a blocking search: it returns partial results within a timeout. It does not clarify how it relates to the similarly-named siblings search_files/search_code, so an agent comparing those three must still infer the difference.

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

Usage Guidelines4/5

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

Gives an explicit usage condition ('Use for big trees') and names the exact follow-up tools: page with get_more_search_results and terminate with stop_search. It stops short of stating when NOT to use it (e.g., small/single-directory lookups where a simple search_files would be better).

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