Skip to main content
Glama
fejinrp
by fejinrp

search

Read-only

Find code matches with ripgrep, grouped by file with counts and compact line output, so coding agents can inspect results without reading whole files.

Instructions

Code search (ripgrep), grouped by file. Every matching file is listed with its count; big results are compacted. Literal unless regex=true.

Input Schema

NameRequiredDescriptionDefault
globNoe.g. ["*.ts","!*.test.ts"]
pathNo
queryYes
regexNo
contextNodefault 2
perFileNocompact mode: match lines per file (default 3)
maxMatchesNofull detail up to this many matches (default 30); above it: compact mode
caseSensitiveNodefault smart-case

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

B3.3/5.0
Behavior3/5

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

readOnlyHint=true already tells the agent this is a safe read. The description adds genuine context beyond that: results are grouped per file with match counts, and large result sets are automatically compacted. It does not state the compaction trigger or what is lost in compact mode, which is the key behavioral detail an agent would want.

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 short sentences with zero filler, and the most important fact (code search grouped by file) is front-loaded.

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 an 8-parameter tool with no output schema, the description usefully explains the shape of results and the existence of a compact mode, but it leaves the interaction between maxMatches and perFile, and path/glob scoping, unexplained. Adequate but with clear gaps for a moderately complex 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?

Schema coverage is 63%, so several parameters (path, query, regex, glob) are undocumented in both places. The description clarifies only that matching is literal unless regex=true, and gestures at compaction without tying it to maxMatches or perFile, so it adds marginal meaning beyond the schema.

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 ('Code search (ripgrep), grouped by file') plus the output grouping model, which distinguishes it from siblings like outline and read_symbol. It never names those siblings explicitly, so differentiation is inferred rather than declared.

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 statement of when to reach for this tool versus outline, read_symbol, or project_notes. The description gives operational facts (literal vs regex, compaction) but leaves tool selection entirely to the agent.

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