Skip to main content
Glama

index_project

Index a project codebase into a searchable code graph to enable structural queries; run before using code search tools.

Instructions

Index the project codebase into a searchable code graph. Run this first to enable structural queries.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "index_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoSubdirectory to index (relative to workspace root)
projectNoProject name for namespacingdefault
incrementalNoOnly reindex changed files

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

A3.5/5.0
Behavior2/5

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

With no annotations, the description carries the full burden of behavioral disclosure for what is a heavy, state-mutating build operation. It says nothing about whether an existing index is replaced, how long it takes, whether it can run concurrently with queries, or what happens on partial failure. Only the output ('searchable code graph') is disclosed.

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, no waste, with the purpose front-loaded and the prerequisite instruction placed where the agent will see it before invoking. Nothing is padded or repeated.

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?

For a tool that can be long-running and destructive to an existing index, the definition covers the 'what' and the 'when' but not the operational realities. The lack of an output schema removes the need to describe return values, but the missing rebuild/overwrite semantics leave a real gap.

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 path, project, and incremental are already fully documented in the schema. The description adds no additional meaning for any of them, so the baseline of 3 applies.

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: indexing the project codebase into a 'searchable code graph'. The phrase 'enable structural queries' implicitly separates it from search_codebase and the retrieval tools. It stops short of naming the sibling tools it enables, so 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 Guidelines4/5

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

The imperative 'Run this first' gives clear ordering guidance: this is a prerequisite before structural queries. There is no statement of when not to run it (e.g. against an already-fresh index) or which sibling to use for subsequent lookups, but the intended context is unambiguous.

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