Skip to main content
Glama

Check architecture

architecture_check
Read-only

Detect module coupling, cohesion, and circular dependency issues in a project, returning local, read-only JSON findings with a saved result URI for review.

Instructions

Report architecture findings for a project: module coupling, cohesion and circular dependencies.

Returns JSON with the architecture findings and _run_id. Read-only and local. Use quality_check for function-level issues.

Defect and Review records remain complete. Advice is grouped by default; expand_advice=True includes every Advice record. Read _result_uri for the complete saved result without rescanning.

Requires SKYLOS_API_KEY: this tool returns an authentication error unless the MCP server is started with SKYLOS_API_KEY set. Without a key, analyze works (5 calls/day) and the local map tools (change_map and the graph_* tools) work with no limit. The local CLI needs no key: skylos verify <file> and skylos agent install-hooks.

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_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesDirectory or file to scan. A relative path resolves against the MCP server's working directory.
confidenceNoMinimum confidence (0-100) for dead-code findings. Higher values report fewer, surer candidates; 60 is the CLI default.
expand_adviceNoInclude every Advice record instead of rule-group counts; complete results are always available through _result_uri.
exclude_foldersNoFolder names to skip, e.g. ["migrations", "scripts"]. When given, this list replaces the default excludes (node_modules, .venv, build, dist and similar); omit it to keep the defaults.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv4.49.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld=false/destructive=false, and the description adds genuinely non-obvious operational facts on top: it requires SKYLOS_API_KEY and fails with an authentication error otherwise, what does work without a key (with a 5 calls/day limit), that results carry a `_run_id` and a `_result_uri` for complete output, and that Advice is grouped by default. The only weakness is structural — these facts are interleaved with tangential CLI advice, and the sentence 'Defect and Review records remain complete' is unexplained here.

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 opening two sentences are well front-loaded and earn their place. The closing paragraph drifts into unrelated operational territory (`skylos verify <file>`, `skylos agent install-hooks`) that does not help an agent decide to call or how to call this tool, and the 'Defect and Review records' line reads as boilerplate.

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 read-only, 4-parameter scan with a declared output schema, the essentials are covered: purpose, the auth prerequisite, the alternative tool for function-level issues, and how to retrieve full results. The unexplained reference to 'Defect and Review records' and the absence of any note on scan cost or scope limits keep it from being fully complete.

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 the baseline is 3. The description adds a little value by explaining the default grouping behavior and pointing to `_result_uri` as the way to get complete results instead of expanding, but it says nothing about `path` resolution, `confidence`, or `exclude_folders` replacing the defaults.

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?

States a specific verb and resource ('Report architecture findings for a project') and enumerates the exact analyses: module coupling, cohesion and circular dependencies. It also explicitly contrasts with `quality_check` as the function-level alternative, so an agent can distinguish the two without opening either schema.

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

Usage Guidelines4/5

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

Names one concrete alternative and the condition that selects it ('Use `quality_check` for function-level issues'), which is real routing guidance. It stops short of a fuller when/when-not statement (e.g. when to prefer `health_score` or `provenance_scan` for architecture-adjacent questions), and the trailing CLI/key paragraph is recovery guidance rather than usage scoping.

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