Skip to main content
Glama
MIRAI Intelligence & Research MCP

MIRAI Intelligence & Research MCP

by Tarant336

Architecture Analyze

architecture_analyze
Read-onlyIdempotent

Build a coarse architecture model of a codebase: map top-level modules with file and line counts, trace cross-module import edges, and detect dependency cycles via DFS. Read-only.

Instructions

Build a coarse architecture model: top-level modules with file/line counts, cross-module import edges and dependency cycles detected via DFS. Read-only.

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

Input Schema

NameRequiredDescriptionDefault
pathNoDirectory relative to the workspace root (default ".").
depthNoPath segments used to name a module (default 1).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the trailing "Read-only." is largely redundant. The description does add real behavioral context by stating the result is a coarse model and that cycles are found via DFS, implying approximation and bounded cost, but it says nothing about performance on large trees or behavior when the path does not exist.

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?

A single front-loaded sentence that spends its words on the concrete outputs (modules, counts, edges, cycles) rather than filler. Nothing is redundant except arguably the trailing read-only note, which is negligible.

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?

With only two optional parameters, no output schema and strong annotation coverage, the tool is simple, and the description usefully enumerates the shape of the returned model in place of an output schema. Minor gaps remain around error conditions and scale, but an agent has enough to call it correctly.

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 both parameters are documented there, including defaults and the maximum depth of 3, so the baseline of 3 applies. The description adds no additional meaning about how path or depth affect the resulting model.

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 names a specific verb and resource ("Build a coarse architecture model") and enumerates exactly what the model contains: top-level modules with file/line counts, cross-module import edges, and dependency cycles. It is far more specific than a generic 'analyze' tool, though it never distinguishes itself from plausible siblings such as dependency_analyze or repository_analyze.

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?

Usage is only implied: the word "coarse" signals this is a lightweight, high-level first pass rather than a deep analysis, which helps an agent pick it early in an investigation. There is no explicit when-to-use statement, no statement of when not to use it, and no named alternative to prefer for deeper dependency work.

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

Deploy Server

Other Tools