Skip to main content
Glama

Index Repo

index_repo

Build or incrementally refresh a local repository index for hybrid RAG search and code outlines, so AI agents can query and orient across codebases.

Instructions

Index or incrementally refresh a local repository for hybrid RAG search and outlines.

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": {
      "path": "<path>"
    },
    "name": "index_repo"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoOptional friendly display name / repo_id alias. Defaults to folder name.
pathYesAbsolute or relative filesystem path to the repository root directory.
forceNoIf True, re-chunk and re-embed all files ignoring the incremental cache.
time_budget_secondsNoOptional soft cutoff in seconds (defaults to CODE_INDXR_MCP_TIME_BUDGET=45s).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.3/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 behavioral burden. It does disclose the incremental-cache behavior ('incrementally refresh'), which is the most important trait here, but it does not say that the call writes persistent index state, that a first run is expensive versus a cached refresh, or that the run can be cut short by the default 45s budget only mentioned in the schema.

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?

A single front-loaded sentence with no filler, no restatement of the title, and every clause (action, scope, output use) earning its place.

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 return values need not be explained, and the four parameters are documented in-schema. What is missing is the operational context an agent needs before firing an indexing job: cost/duration expectations, whether re-indexing an already-tracked path is safe, and how this differs from index_project.

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 the meaning of path, name, force and time_budget_seconds is already fully supplied by the schema; the description adds nothing parameter-specific. When the schema does all the work, a baseline 3 is the correct ceiling.

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 uses a specific verb pair ('index or incrementally refresh') against a concrete resource ('local repository') and states the downstream purpose ('hybrid RAG search and outlines'). What it never does is separate this tool from the sibling 'index_project', which by name alone appears to target the same operation, leaving the agent unable to choose between them from the description.

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 when-to-use or when-not-to-use guidance. 'Index or incrementally refresh' implies two modes, but nothing says which one applies when, and no alternative sibling (index_project, get_repo_status, list_repos) is named as the option for a different situation.

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