Skip to main content
Glama

Get Architecture Overview

architecture_overview
Read-onlyIdempotent

Render a structural AI-Builder-Markdown overview of a .NET solution: layer map, dependency graphs, entry points, and quality hotspots, without bloated per-file source blocks.

Instructions

Orient on a whole solution WITHOUT the firewall of full source. When anything was cut, the document LEADS with a block: how many sections were capped, how many entries are shown of how many in total, and one 'SECTION: shown of total' row per capped section - read it before the sections, because the per-section '+N more' lines below state one section's loss each and never the whole. Absent = nothing was cut. Renders a structural-only AI-Builder-Markdown overview: the macro/architecture graphs (layer map, service & class dependency graphs, role graph, entry points + entry-point flow, architecture flow, interface relations) plus a domain summary and a quality-hotspots section (the most complex methods + most-coupled types) - but NO per-type/per-file source-code blocks, so it stays bounded where export_markdown is a multi-MB firehose. BOUNDED AT SCALE: each macro section is capped at 80 entries with a '+N more' note; the layer map lists every type up to 2500 and per-layer counts above, so even a 200+-project monolith returns a usable orientation instead of overflowing the token cap (use export_markdown for the full set, or find_symbol / call_graph / get_context to drill in). PRODUCTION-FOCUSED: test projects are excluded by default (includeTests=true includes them). Method-level call graphs are deliberately omitted (use call_graph / explain_symbol for a specific symbol). Multi-TFM solutions are deduplicated to one declaration per type, the NEWEST TFM's where it has one (without it every hotspot/edge appears once per TFM). Recall-safe: works on live AND recalled sessions (on a recalled session quality-hotspot line counts are unavailable, complexity is still shown). Use this FIRST to understand a codebase's shape, then get_context / explain_symbol to drill into a symbol.

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": {
      "sessionId": "<sessionId>"
    },
    "name": "architecture_overview"
  }
}

Input Schema

NameRequiredDescriptionDefault
leanNoLean mode (default TRUE): drop the <AI_CONTEXT_SPEC>/<AI_CONTEXT_META> format-rules preamble and any empty graph sections. Set false for the full AI-Builder-MD document contract.
sessionIdYesThe session_id returned by analyze_solution. Also takes an absolute .sln/.slnx/.slnf path, analyzed on first use.
summaryOnlyNoSummary mode (default FALSE): collapse each macro-section to a count + top-N entries instead of up to 80. Use on EXTREME/very-large solutions (200+ projects, heavy generics) where even the bounded overview exceeds the token cap and would otherwise return nothing.
includeTestsNoInclude test projects (default FALSE - production focus: an architecture overview is otherwise flooded by every test method listed as an entry point + its flow trace, bloating the output with scaffolding that is not part of the production architecture). Set true to include *.Tests/*.Spec projects in the graphs.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.5.46513
    • changedInput schema / properties / sessionId / description
      Previous value: -"The session_id returned by analyze_solution."New value: +"The session_id returned by analyze_solution. Also takes an absolute .sln/.slnx/.slnf path, analyzed on first use."
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already carry readOnly/idempotent/non-destructive/closed-world, yet the description adds substantial behavior the annotations cannot express: the leading <TRUNCATION> block semantics, 80-entry caps with '+N more', the 2500-type layer-map limit, test-project exclusion rationale, deliberate omission of method-level call graphs, newest-TFM deduplication, and degraded quality-hotspot line counts on recalled sessions. This is well beyond the structured fields.

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?

Front-loaded with the single most important framing ('Orient on a whole solution WITHOUT the firewall of full source'), and the truncation warning is deliberately placed before section details because the text explains why it must be read first. It is dense and heavily emphasized in caps, and the export_markdown 'firehose' point is restated, but nearly every sentence carries operational meaning for a complex tool.

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?

With no output schema, the description still tells the agent what comes back (which graphs, domain summary, hotspots), how output can be truncated and how to read that block, how scale is bounded, what is excluded by default, and how recalled sessions differ. For a tool this complex, nothing an agent needs to call it correctly 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 description coverage is 100% and each of the four parameters has a thorough inline description, so the baseline is 3. The description reinforces includeTests (test entry points flood the graphs) and summaryOnly (extreme solutions) but does not add syntax or format meaning beyond what the schema already states for lean/summaryOnly/includeTests.

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 opens with a specific verb+resource+scope: a structural-only AI-Builder-Markdown architecture overview of a whole solution, without per-type/per-file source blocks. It enumerates exactly what sections it renders (layer map, dependency graphs, role graph, entry points, domain summary, quality hotspots) and explicitly names what it is not (export_markdown's multi-MB output). An agent can distinguish it from all named siblings without opening a schema.

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?

Explicit routing: 'Use this FIRST to understand a codebase's shape, then get_context / explain_symbol to drill into a symbol', with export_markdown for the full set and call_graph/explain_symbol for method-level detail. It also states when summaryOnly matters (200+ project extremes) and when includeTests should be flipped, covering both when-to-use and when-not-to-use.

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