Skip to main content
Glama
fast-indexer-mcp
by Akramx15

instant_content_search

Search file contents with ripgrep and get matches grouped by file. Filter by glob, regex, or literal text to locate exact code across large repositories.

Instructions

Search file contents with ripgrep; groups matches by file. Use output_mode="files_only" first on broad queries.

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

Input Schema

NameRequiredDescriptionDefault
patternYesRegex or literal string
file_globNoGlob filter (e.g. "*.ts", "!*.test.*")
no_ignoreNoIgnore .gitignore rules
is_literalNoTreat pattern as literal text (-F)
whole_wordNoMatch whole words (-w)
max_matchesNoMax matches (default: 50, max: 200)
output_modeNoOutput format (default: matches)matches
target_pathNoDirectory or file path (defaults to ".")
context_linesNoContext lines 0-3 (default: 0)
include_hiddenNoInclude hidden/dot files and folders (skips .git)
max_line_lengthNoTruncate lines beyond N chars (default: 500)
case_insensitiveNoCase-insensitive (-i, default: true)
search_compressedNoSearch inside .gz/.zst streams (-z)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.1

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it discloses very little: no statement that this is a read-only operation, no mention of result limits/truncation behavior, no note that .gitignore rules apply by default. The one real disclosure is that results are grouped by file, which is helpful but far short of what a 13-parameter tool with zero annotation coverage requires.

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 short sentences, the core purpose front-loaded and the practical tip trailing it. Nothing redundant, nothing that merely restates the tool name.

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 tool with 13 parameters, no annotations, and no output schema, the definition is too thin. An agent gets no picture of what the response looks like beyond file grouping, no mention of default filtering (gitignore/hidden files) or result caps, and no guidance for choosing among the many optional flags.

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 100%, so all 13 parameters are already documented, making the baseline 3. The description does add a small amount of strategic meaning by suggesting output_mode="files_only" for broad queries, but it does not clarify interactions such as is_literal vs regex, no_ignore vs include_hidden, or sensible settings for max_matches/context_lines.

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 — 'Search file contents with ripgrep' — plus the output shape ('groups matches by file'), which implicitly separates it from filename-oriented siblings like instant_file_locate. It never names or explicitly contrasts a sibling, so the differentiation is inferential 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 Guidelines3/5

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

Provides one concrete tactic ('Use output_mode="files_only" first on broad queries'), which is genuinely useful for narrowing broad searches. However, it gives no when-to-use/when-not guidance relative to ast_context_search or instant_file_locate, and no prerequisites or cost warnings.

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