Skip to main content
Glama

super_grep

Search a codebase across symbols, references, semantic vectors, and keywords in one call, then fuse and deduplicate results by combined relevance for comprehensive code discovery.

Instructions

Powerful search combining ALL available indexes for maximum recall.

Automatically uses the best search strategy based on query:
1. Symbol lookup - if query matches a symbol name exactly
2. Reference search - find all usages of matching symbols
3. Semantic search - vector similarity for conceptual matches
4. Keyword search - BM25 full-text search for exact terms

Results are fused and deduplicated, ranked by combined relevance.

Args:
    query: Search query (symbol name, keyword, or natural language)
    directory: Path to the codebase directory
    limit: Maximum results per category (default: 10)

Returns:
    Unified search results from all indexes

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": {
      "query": "<query>",
      "directory": "<directory>"
    },
    "name": "super_grep"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYes
directoryYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/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 disclosure burden; it usefully explains that results are fused, deduplicated, and ranked by combined relevance, which is real behavioral insight. However, it is silent on operational preconditions: whether the directory must already be indexed (siblings index_directory and sync_index exist), what happens if it is not, and whether the tool is read-only with no side effects.

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?

The definition is front-loaded with the one-line purpose, then uses a numbered strategy list and Args/Returns blocks, making it easy to scan. Minor waste in the marketing adjective "Powerful" and in the Returns line, which restates what a provided output schema already conveys.

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?

An output schema exists, so the brief Returns line is sufficient, and the strategy explanation is proportionate to a three-parameter tool. The missing piece is indexing state: for a search tool in a toolset containing index_directory and sync_index, an agent cannot tell from this definition whether a fresh directory will work or return empty results.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/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 supply all parameter meaning, and it largely does: query is clarified as accepting a symbol name, keyword, or natural language, and limit is clarified as per-category rather than total. The directory parameter is only glossed as "Path to the codebase directory" with no notes on whether it must be indexed or a subpath is allowed.

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 specific verb and resource ("search combining ALL available indexes") and enumerates the four retrieval strategies it fuses, so there is no ambiguity about what the tool does. It implies a superset relationship to siblings like find_references and get_symbol_definition but never names them, so the differentiation is inferential rather than explicit.

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?

The numbered strategy list and "maximum recall" framing imply that this is the broad, use-when-unsure search, but there is no explicit statement of when to prefer it over find_references or get_symbol_definition. The behavior described ("automatically uses the best search strategy") explains internal routing, not the conditions under which an agent should choose this tool.

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