Skip to main content
Glama

get_architecture_summary

Summarize a repository's architecture as communities, cross-community connectors, and hotspots, with optional filtering by community, path, file type, or hub nodes to guide codebase analysis.

Instructions

Return a repository-level architecture summary with communities, cross-community connectors, and architectural hotspots. Set community_id to focus on one community instead of the overview, include_community_members to append its full member list, and include_god_nodes to append the most highly connected hub nodes.

Input Schema

NameRequiredDescriptionDefault
node_typesNoOptional file types to include, for example ['code', 'document', 'rationale'].
path_prefixNoOptional path prefix or path fragment to include (case-insensitive).
community_idNoOptional integer community ID. When set, the response focuses on that community instead of the repository-wide overview.
exclude_pathNoOptional path prefix or path fragment to exclude (case-insensitive).
god_node_limitNoNumber of hub nodes to return when include_god_nodes is true (default 10, max 50).
ast_only_tuningNoAST-only tuning: true enables AST-only noise suppression, false disables it, omitted = auto.
max_communitiesNoMaximum number of communities to summarize in the overview (default 5, max 10).
include_god_nodesNoAppend the top architectural hub nodes (god nodes) after the architecture summary. Default false.
generated_code_modeNoGenerated-like code filter: 'include' (default), 'exclude', or 'only'.
include_community_membersNoWhen community_id is set, append the full member list for that community. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.23.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations at all, the description carries the full disclosure burden. It does credibly describe the shape of the response (overview vs per-community focus, appended member lists and hub nodes), but says nothing about prerequisites (e.g. the graph must already be loaded/reloaded), cost/latency of an aggregation over the whole repo, or default limits behavior beyond what the schema states.

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?

Two sentences, no filler, with the core output contract front-loaded and the mode-switching flags grouped in the second sentence. Every clause earns its place.

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

Completeness4/5

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

For a 10-parameter, no-output-schema tool it does the important work of describing what comes back, and the schema fully covers the knobs. What is missing is operational framing: no note that the repository graph must be loaded, and no hint about the relative cost of the repo-wide overview versus a focused community query.

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%, so every one of the 10 parameters is already documented. The description echoes the semantics of community_id, include_community_members and include_god_nodes, but adds no detail the schema lacks (defaults, ranges, and filtering modes on node_types/path_prefix/generated_code_mode are all schema-side). Baseline 3 applies.

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?

A concrete verb (return) plus resource (repository-level architecture summary) and an explicit enumeration of what the payload contains: communities, cross-community connectors, architectural hotspots. It does not distinguish itself from nearby read tools such as query_graph or get_graph_info, which is the only thing keeping it off a 5.

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 second sentence gives conditional guidance for three flags ('Set community_id to focus on one community instead of the overview', include_community_members/god_nodes append to the result), so invocation modes are implied. There is no statement of when to choose this tool over an alternative query path, nor any when-not guidance.

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