Skip to main content
Glama

get_architecture_digest

Generate a token-efficient AST skeleton of an entire codebase for AI agents, automatically filtering junk, dist, node_modules, and minified bundles to provide a compact architectural overview.

Instructions

Instant Context: Generates a high-density, token-efficient (~1,500 token) AST skeleton of the entire codebase. Automatically filters out junk, dist, node_modules, and minified bundles.

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

Input Schema

NameRequiredDescriptionDefault
root_dirNoPath to the repository root directory (default: '.').
max_tokensNoMaximum token budget for the skeleton digest (default: 4000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It does disclose useful traits — automatic exclusion of dist/node_modules/junk/minified bundles and an approximate output size — but omits what the AST skeleton actually contains, whether output is truncated, and how large repos are handled; it also cites '~1,500 tokens' while the schema default budget is 4000, an unexplained discrepancy.

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 tightly packed sentences with the core capability front-loaded and no filler. Minor deduction for the 'Instant Context:' marketing prefix and the token estimate that sits in tension with the schema's 4000-token default.

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 two-parameter, annotation-free read tool with no output schema, the description covers purpose and filtering behavior but leaves the shape and limits of the returned skeleton undescribed. An agent knows roughly what it gets but not how to interpret or size the result.

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%, so both root_dir and max_tokens are already documented in the schema, and the description adds no syntax or format detail beyond them. The only linkage is the implicit relationship between the stated ~1,500-token output and the max_tokens budget, which is left ambiguous rather than clarified.

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 concrete verb and resource: generates an AST skeleton of the entire codebase, with scope ('entire codebase') and a token-efficiency characterization. It implicitly contrasts with narrower siblings like locate_surgical_context or get_subsystem_clusters, but never names one, so differentiation is inferred 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 Guidelines3/5

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

The 'Instant Context' framing implies this is an orientation/first-look tool, which is useful implied guidance, but there is no explicit when-to-use statement, no exclusion, and no mention of alternatives such as locate_surgical_context for targeted work or get_subsystem_clusters for structural breakdowns.

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