Skip to main content
Glama

index_project

Scans and indexes a project's structure into .claude/project_map.json, enabling Claude to answer structural questions from a persistent local map instead of rescanning the codebase.

Instructions

Scanne un projet et indexe sa structure dans .claude/project_map.json. À lancer une fois en début de session ou après des refactors importants.

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": {
      "projectPath": "<projectPath>"
    },
    "name": "index_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectPathYesChemin absolu vers la racine du projet

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations, so the description carries the full burden. It does disclose the key side effect — writing/creating a file at .claude/project_map.json — which tells the agent this is a mutating operation, but it never says whether an existing map is overwritten, how long a scan takes, or what is returned.

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?

Two tight sentences with the action and the output location front-loaded, followed by timing guidance. No filler, though the artifact path could be visually separated for scannability.

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?

Adequate for a one-parameter tool, but a mutating indexer with no annotations and no output schema should say what happens to an existing project_map.json and what the agent gets back on success or failure.

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 coverage is 100% with a single well-described required parameter (absolute path to project root), so the schema does the heavy lifting. The description adds nothing about path validation, symlinks, or monorepo roots.

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 pair (scanne/indexe) and the exact artifact produced (.claude/project_map.json), which distinguishes it from the read-only sibling get_project_map. It does not name that sibling explicitly, so differentiation is inferable rather than stated.

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?

Gives concrete when-to-use guidance: once at the start of a session, or after major refactors. No explicit when-not-to-use (e.g. don't re-run if the map is fresh) or cost warning about repeated scans.

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