Skip to main content
Glama

index_project

Read-only

Run a read-only repository scan to create a resumable ontology indexing plan, classifying existing, ambiguous, and new concepts with review points—before any write.

Instructions

Project ontology indexing plan — run analyze_repo_structure + infer_imports + validate_vault in one read-only call. Use for large or already-existing projects where the agent needs a resumable ontology indexing checkpoint before writing. Its extractionContract treats source facts as observed evidence, README/folder meanings as proposals, and only persisted ontology meanings as shared; it also returns competency questions, uncertainty, approval gates, and whether active-vault validation actually applies to the analyzed project. The plan distinguishes raw candidates into existing, ambiguous-alias review, and genuinely new buckets, then returns exact reviewCalls for retrieving full rows. side effect 0: this tool never writes markdown. CLI index --apply may write analyzer-proposed concepts and containment, but inferred imports remain review-only and are never auto-promoted to depends_on.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
maxDepthNoFolder walk depth forwarded to analyze_repo_structure (default 2, max 10).
maxFilesNoFile cap forwarded to infer_imports (default 5000, max 50000).
rootPathNoRepository root to index. Defaults to the active resolved repository root from connection_info.
thresholdNoOptional module-edge count threshold for the returned import relation plan.
skipImportsNoWhen true, skip infer_imports and return an analyze + validate plan only.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeYes
nextYes
planYes
analyzeYes
importsYes
rootPathYes
vaultRootYes
sideEffectYes
validationYes
meaningGateYes
semanticEvidenceYes
extractionContractYes
configurationEvidenceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.13.0

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the readOnlyHint annotation by detailing the extraction contract (source facts as evidence, README meanings as proposals), categorization of candidates into existing/ambiguous/new buckets, return of reviewCalls, and explicit 'side effect 0: this tool never writes markdown.' It also explains that inferred imports are never auto-promoted, adding behavioral nuance not captured by annotations. No contradiction.

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?

The description is long but well-structured: the first sentence gives purpose, the second usage, then behavioral details. Every sentence conveys necessary information for a complex orchestration tool, though some phrasing could be tightened. It is front-loaded with the most critical usage guidance.

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

Completeness5/5

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

Given the tool's complexity and the presence of a full output schema, the description covers purpose, usage, side effects, and key return categories (competency questions, uncertainty, approval gates, reviewCalls). It even clarifies when active-vault validation may not apply, so nothing essential for correct invocation appears missing.

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 for all parameters is 100%, so the baseline is 3. The description does not add extra meaning to individual parameters beyond what the schema already provides; it only mentions them in passing (e.g., 'forwarded to'), so it doesn't compensate beyond baseline.

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 tool orchestrates three specific analyzer tools (analyze_repo_structure, infer_imports, validate_vault) into a single read-only indexing plan. It distinguishes itself from those underlying tools by being a composite and from the CLI write variant by explicitly being read-only and never writing markdown.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

The description explicitly states when to use: 'for large or already-existing projects where the agent needs a resumable ontology indexing checkpoint before writing.' It also contrasts with the CLI `index --apply` which may write, positioning this tool as the read-only alternative with the note that inferred imports remain review-only.

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