Skip to main content
Glama
taggedzi

Repo Interrogator

by taggedzi

repo.search

Search indexed repository chunks using BM25 keyword matching to retrieve ranked results with file location and snippet.

Instructions

Run BM25 full-text search over indexed repository chunks. Returns ranked hits with file path, line range, snippet, and matched terms. Run repo.refresh_index first if the index is not yet built.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNoSearch mode — only 'bm25' is supported in v1.
queryYesSearch terms (BM25 keyword matching).
top_kNoMaximum number of results to return.
file_globNoGlob pattern to restrict search to matching files (e.g. 'src/**/*.py').
path_prefixNoPath prefix to restrict search scope (e.g. 'src/repo_mcp/').
Behavior4/5

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

Without annotations, the description carries full burden. It discloses the search algorithm (BM25), result structure, and index requirement. Does not explicitly state side effects, but hints at read-only behavior.

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 sentences, front-loading purpose and output, then providing usage guidance. No redundant information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Explains output format (ranked hits with specific fields) and index prerequisite. No output schema, so the description compensates well. Could mention read-only nature, but still adequate.

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%. The description adds only general context (BM25, index requirement) without per-parameter details beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'Run BM25 full-text search', specifies the resource 'indexed repository chunks', and describes the output components. It differentiates from siblings like repo.refresh_index.

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?

Provides explicit prerequisite: 'Run repo.refresh_index first if the index is not yet built.' No when-not-to-use or alternatives, but the context is clear.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/taggedzi/Repo-Interrogator'

If you have feedback or need assistance with the MCP directory API, please join our Discord server