Skip to main content
Glama

check_boundaries

Read-onlyIdempotent

Verify architecture boundaries by listing imports that cross layer rules for a module or all, and report unchecked parts with reasons. Use before reviews or after moving code between layers.

Instructions

Checks the architecture rules and lists the imports that cross one (for example domain importing infrastructure), for one module or for all, then the parts of the repository that could not be checked, with the reason. Use it before a review, or after moving code between layers. A part that was not checked is reported as not checked, never as passing. scope is one module ID to check that module alone; left out, or all, it checks every part. It judges rules only: to see the layers themselves use list_layers, for who depends on a module use list_dependencies, for what an edit reaches use analyze_impact. Returns one line per finding and one per part. A long list stops at 200 items unless all is true.

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

Input Schema

NameRequiredDescriptionDefault
allNoList everything instead of stopping at 200 items.
scopeNoModule ID or "all".all

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.15.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description does add genuinely useful behavior beyond them: uncovered parts are reported as not checked rather than passing, and long result lists cap at 200 items unless `all` is true. Return shape (one line per finding, one per part) is mentioned but only in outline.

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?

The core action and the when-to-use guidance are front-loaded, and the sibling routing sentence is compact and skimmable. It is a dense block with several consecutive clauses and a tail-end truncation note that could be grouped with the scope discussion, but no sentence is wasted.

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?

With no output schema, the description must carry return-format burden, and it does so only partially ("one line per finding and one per part" without field detail). For a read-only checker with full schema coverage and clear annotations this is adequate, though the not-checked reporting format remains underspecified.

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 coverage is 100% and both defaults are already documented, so the schema does the heavy lifting. The description reinforces meaning by explaining that an omitted `scope` behaves like `all` and that `all` disables the 200-item cap, but it adds only modest detail beyond the schema text.

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 ("Checks the architecture rules and lists the imports that cross one") with a concrete example of a violation (domain importing infrastructure). It explicitly carves out its role against three named siblings (list_layers, list_dependencies, analyze_impact), so an agent can select it without opening other schemas.

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

Usage Guidelines5/5

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

Gives two concrete triggers ("before a review, or after moving code between layers") and states the exclusion clearly ("It judges rules only"), routing layer inspection, dependency lookup, and impact analysis to their own tools. Scope-driven narrowing versus full-repo checking is also spelled out.

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