Skip to main content
Glama

architecture_map

Maps legacy codebase architecture at a narrowed observed scope: languages, modules, entry points, layering, and file-size distribution, with cited evidence.

Instructions

Architecture map only, at the narrowed observed scope: languages, module/package structure, entry points, layering signals, file/size distribution, with the evidence recorded by the engine. Read-only legacy codebase recon — NARROWED OBSERVED SCOPE (CLAIM-SCOPE.md): architecture map, dependency/EOL risk list, modernization-estimate inputs. Within that scope, reported entries cite evidence or basis; standing unknowns are UNKNOWN, never guessed. OBSERVED is a scoped positive inventory, not an exhaustive or universal JS/TS claim.

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": {
      "path": "<path>"
    },
    "name": "architecture_map"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
max_filesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior4/5

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

With no annotations supplied, the description carries the burden and does disclose meaningful behavior: the operation is read-only, reported entries cite recorded evidence, standing unknowns are marked UNKNOWN rather than guessed, and OBSERVED results are explicitly non-exhaustive. It stops short of describing result format or how the evidence is presented, but the epistemic guarantees are unusually well stated.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The content enumeration is front-loaded and useful, but the remaining text is dense with procedural caveats (CLAIM-SCOPE.md reference, repeated scope and UNKNOWN/OBSERVED restatements) that partially repeat the same idea. Some of that phrasing earns its place as behavioral disclosure; the duplication does not.

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, and the description does explain what the map contains and how uncertainty is represented, which covers the return semantics. However, with two entirely undocumented parameters and no stated size/performance implications of max_files, the definition is not complete enough for confident invocation.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must explain the two parameters, yet neither 'path' (required) nor 'max_files' is mentioned at all. An agent gets no guidance on path format, root/relative semantics, or what max_files limits or defaults to.

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 enumerates the concrete contents of the map: languages, module/package structure, entry points, layering signals, and file/size distribution, which is far more specific than the name alone. It is somewhat muddied by also listing 'dependency/EOL risk list' and 'modernization-estimate inputs' inside its scope, which overlaps sibling tool names and leaves the boundary slightly ambiguous.

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

Usage Guidelines2/5

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

It labels itself 'read-only legacy codebase recon' and defines an observed scope, which implies context, but it never says when to pick this over recon_scan, dependency_risk_list, or modernization_inputs. Calling the dependency/risk list part of its own scope actively blurs the sibling boundary rather than clarifying it.

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