Skip to main content
Glama

verify_architecture

Read-onlyIdempotent

Verifies declared architecture rules against bounded local evidence without running tests, builds, or scripts. Use it to check fitness rules and detect architectural drift before merging changes.

Instructions

Verifies declared architecture rules from bounded local evidence without running tests, builds, or scripts.

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": {
      "rulesPath": "<rulesPath>"
    },
    "name": "verify_architecture"
  }
}

Input Schema

NameRequiredDescriptionDefault
policyNoAdvisory or enforce. Enforcement reports policy failure but does not mutate the repository.advisory
rulesPathYesForward-slash repository-relative fitness rules JSON path.
baselinePathNoOptional repository-relative existing drift baseline path, read only.
evidencePathsNoOptional repository-relative bounded evidence JSON paths already produced by trusted tools.

Output Schema

NameRequiredDescriptionDefault
policyYes
coverageYes
findingsYes
repositoryYes
inconclusiveYes
policyFailedYes
schemaVersionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A3.8/5.0
Behavior4/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 adds a genuinely useful trait beyond that: it does not run tests, builds, or scripts, and it works only from bounded local evidence. It omits what the verification returns and how policy failures surface, but the output schema carries that.

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 with no filler. The key scope constraint and the execution-model caveat both land immediately.

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 rich annotations, a full output schema, and 100% schema coverage, the description only needs to frame purpose and execution model, which it does. A brief note on the advisory-vs-enforce distinction or drift baseline intent would make it fully self-sufficient, but those live in the schema.

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 all four parameters (rulesPath, policy, baselinePath, evidencePaths) are already documented in structured data. The description's phrase 'bounded local evidence' loosely corresponds to evidencePaths but adds no syntax, format, or selection guidance beyond the schema; baseline-3 is appropriate.

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?

States a specific verb ('Verifies') and resource ('declared architecture rules') plus a scoping constraint ('from bounded local evidence'). This clearly separates it from ADR-centric siblings like validate_adrs or get_adr, though it never names an alternative explicitly.

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 agent can infer this is the tool to call when it has a fitness-rules JSON path. There is no explicit when-to-use/when-not-to-use guidance and no routing to siblings such as validate_adrs, so the agent must infer the boundary itself.

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