Skip to main content
Glama

tier_repo

Index a repository directory into a layered TIER architecture map with exported symbol signatures, line ranges, and local dependency edges. Use index_only for the L0 map alone.

Instructions

Index a repository directory into a layered TIER architecture map. Each module section contains exported symbol signatures with line ranges and '>' edges to local dependencies. Use index_only=true for just the L0 map.

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": "tier_repo"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNodirectory relative to server root.
index_onlyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.1

TDQS

A3.6/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 burden. It does disclose the shape of the produced map (module sections, exported symbol signatures, line ranges, '>' dependency edges) and the effect of index_only. It says nothing about side effects such as whether an index is persisted, whether existing index state is overwritten, how long a full run takes, or what permissions the directory requires — all material for a tool that appears to write index state.

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?

Three short sentences, each doing distinct work: purpose first, output shape second, the optional-parameter shortcut last. No filler or repetition of the tool name.

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?

There is no output schema and no annotations, so the description must carry return values and behavior; it describes the map's contents adequately but leaves persistence, re-index semantics, and cost unstated. Adequate for selection, incomplete for confident invocation of an indexing tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 50%; 'path' is documented in the schema, while 'index_only' is not, and the description supplies its meaning ("for just the L0 map") plus the fact that deeper layers are the default. That fills the actual documentation gap, though 'L0' is left unexplained.

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 and resource ("Index a repository directory") and names the concrete artifact produced ("a layered TIER architecture map"). It does not differentiate itself from the similarly named sibling tier_index, so an agent cannot tell from the text alone which of the two to pick.

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

Usage Guidelines3/5

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

One usage rule is given explicitly: "Use index_only=true for just the L0 map," which is genuinely useful. Beyond that there is no guidance on when this tool is preferable to tier_index, tier_sync, or tier_ingest, and no prerequisites or exclusions are stated.

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