Skip to main content
Glama
codedev-mcp

codedev-mcp

by Kranthithota

architecture_check

Read-onlyIdempotent

Detects circular dependencies, layered architecture violations, and component isolation issues to enforce architectural constraints and patterns in codebases.

Instructions

Check architectural constraints and patterns. Detects circular dependencies, layered architecture violations, and component isolation issues.

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

Input Schema

NameRequiredDescriptionDefault
check_typeNo

Output Schema

NameRequiredDescriptionDefault
passedYes
violationsYes
rulesCheckedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.2.5

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and openWorldHint=false, so the safety profile is covered. The description usefully adds the categories of violations it reports, but says nothing about how checks are scoped, whether results are advisory versus blocking, or any setup requirements. With an output schema present, the return format gap is acceptable, making a 3 appropriate.

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?

Two short sentences, front-loaded with the purpose before the enumeration, with no filler. The second sentence largely restates the first at a finer grain rather than adding new information, which keeps it just short of a 5.

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?

An output schema exists, so return values need not be explained. However, for a tool whose only parameter is an undocumented enum with a default, the definition leaves the agent guessing about which check each enum value triggers and what happens if check_type is omitted, which is a real gap relative to the tool's modest complexity.

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?

There is one optional parameter, check_type, whose enum values (layers, circular, srp) receive no mention in the description and 0% schema description coverage. The description's list of checks loosely maps to "circular" and "layers", but "srp" is never explained ("component isolation issues" is a weak gloss), and the behavior when the parameter is omitted is unstated. With coverage below 50%, the description needed to compensate and does not.

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 gives a specific verb ("Check") and resource ("architectural constraints and patterns") and enumerates what it detects: circular dependencies, layered architecture violations, and component isolation issues. It does not, however, distinguish itself from plausible siblings such as dependency_graph or find_duplicates, which could overlap with the circular-dependency detection.

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 implied by the enumerated detections (use it for architecture validation), but there is no explicit when-to-use statement, no exclusions, and no pointer to an alternative tool for related analyses. The agent must infer the trigger conditions from the list of checks.

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