Skip to main content
Glama
Gemini Remote Agent MCP

Gemini Remote Agent MCP

by lisycotana

grep_search

Read-only

Search workspace files with ripgrep to find pattern matches with file paths and line numbers. Use it to locate code, text, or references before editing.

Instructions

Search with ripgrep. Matches include workspace-relative paths and line numbers.

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

Input Schema

NameRequiredDescriptionDefault
pathNo.
patternYes
file_globNo
max_matchesNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered without the description. The description adds useful result-format context (workspace-relative paths, line numbers), but omits meaningful behavior such as regex-versus-literal matching, recursive scope from the path, and whether results are truncated at max_matches.

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 terse sentences, front-loaded with the core action and engine, followed by the one detail an agent most needs about output. Nothing is padded or redundant.

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?

An output schema exists, so return values need not be explained, but for a four-parameter search tool with zero schema descriptions the definition is too thin. Key operational facts—regex support, recursion behavior, and truncation via max_matches (default 50)—are absent, which risks malformed queries or silently incomplete results.

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 four parameters, so the burden falls entirely on the description, which says nothing about pattern syntax, what path scopes, what file_glob filters, or what max_matches limits. Only the path/line-number form of matches is hinted at, leaving the actual inputs 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?

States a specific verb and underlying engine ('Search with ripgrep') plus the shape of results (workspace-relative paths and line numbers), which is more informative than the bare name. It does not, however, distinguish itself from the sibling find_files, so an agent could plausibly confuse content search with filename search.

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?

Naming ripgrep implies content/regex search over files rather than locating files by name, which gives an agent a workable basis for choosing this over find_files. There is no explicit when-to-use or when-not-to-use statement and no mention of alternatives, so the guidance is implied rather than stated.

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