Skip to main content
Glama

search

Find pattern matches in repository files using ripgrep, returning bounded file, line, or count results from sandbox directories.

Instructions

Zero-LLM repository search using rg when available. dirs may contain sandbox directories or files; returns bounded file/line matches inside SANDBOX_ROOT.

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": {
      "pattern": "<pattern>"
    },
    "name": "search"
  }
}

Input Schema

NameRequiredDescriptionDefault
dirsNo
globNo
modeNo
patternYes
max_resultsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.5.0

TDQS

C2.9/5.0
Behavior3/5

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

With no annotations, the description carries the full load, and it does disclose several real traits: no LLM involvement, ripgrep with a conditional fallback, dirs accepting both directories and files, output bounded by matches, and confinement to SANDBOX_ROOT. It stays silent on failure behavior (missing rg, nonexistent directories), whether results are paginated or truncated, and how ordering works.

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?

Two tight sentences, front-loaded with the core mechanism and backend note before the scope constraint. The phrase 'dirs may contain sandbox directories or files' is slightly awkward but every clause conveys information; nothing is padding.

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 five-parameter tool with zero schema coverage, no annotations, and no output schema, the definition leaves too much unexplained — the three search modes, glob filtering, and the shape and ordering of returned matches are all undocumented. It conveys the essence but not enough for an agent to invoke the non-default parameters correctly.

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%, so the description must compensate for five bare parameters, and it only partly does: it clarifies that dirs may hold directories or files and implies bounded output via max_results. The mode enum (lines/files/count) is behaviorally decisive yet never explained, and glob and pattern syntax get no mention at all.

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 concrete verb and resource: repository search performed via ripgrep, with a scope of files and lines under SANDBOX_ROOT. 'Zero-LLM' usefully distinguishes it from agentic siblings like analyze or review, but it never names or contrasts any alternative tool, so the differentiation is implicit rather than stated.

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 explicit when-to-use or when-not-to-use guidance and no mention of alternatives such as get or read_pack for reading specific files. The only usage-adjacent signal is 'using rg when available', which hints at a fallback backend but never explains what the fallback does or when it applies.

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