Skip to main content
Glama

index_project

Index a local project folder's code and documentation for search; re-runs process only changed files and return file and symbol counts.

Instructions

Indexes a local folder for code and documentation search. Incremental: re-runs only process changed files. Returns file count and symbol count. For third-party libraries, use index_library_source instead.

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_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoDisplay name for the repository (defaults to folder name)
pathYesAbsolute path to the folder to index

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.10.2

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full disclosure burden. It usefully states that runs are incremental (only changed files are reprocessed) and that output includes file and symbol counts, but it says nothing about cost or duration for a first full index, permission/path requirements, or what happens if the same path is indexed twice.

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?

Three short sentences, front-loaded with the core action before the incremental note and the sibling hand-off. Nothing is padded, though the return-value sentence and the alternative sentence could be merged without loss.

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?

For a two-parameter indexing tool with no output schema, the description covers purpose, incremental semantics, expected return contents, and sibling routing. The main omission is any indication of runtime cost or prerequisites, which matters for an operation that walks an entire directory tree.

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% and both parameters are documented in the schema, including the name-defaulting behavior. The description adds no syntax, path-format, or naming guidance beyond what the schema already provides, so the baseline of 3 applies.

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 gives a specific verb and resource ('Indexes a local folder for code and documentation search') and immediately distinguishes itself from index_library_source, which handles third-party libraries. An agent can tell what this tool produces without opening the schema.

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?

It explicitly routes third-party library indexing to index_library_source, giving one concrete alternative and the condition that selects it. It does not address other plausible alternatives in the sibling set (e.g., multi-repo indexing), so the guidance is clear but not exhaustive.

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