Skip to main content
Glama
tosin2013

mcp-adr-analysis-server

by tosin2013

analyze_gaps

Read-onlyIdempotent

Scan your codebase against ADRs to detect missing file references and uncover undocumented technologies or patterns. Report gaps to the ADR Aggregator for tracking.

Instructions

Scan local codebase and compare with ADRs to detect bi-directional gaps. Finds: (1) ADR-to-code gaps: file references in ADRs that do not exist, (2) Code-to-ADR gaps: technologies in package.json and architectural patterns without ADR coverage. Reports gaps to ADR Aggregator for tracking.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectPathNoProject path (defaults to PROJECT_PATH)
excludePatternsNoFile patterns to exclude from scan (regex)
includePatternsNoFile patterns to include in scan (regex)
scanDirectoriesNoSpecific directories to scan (defaults to src, lib, app, packages)
includeDismissedNoInclude previously dismissed gaps in analysis
reportToAggregatorNoWhether to report gaps to ADR Aggregator

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Addedv2.6.1

TDQS

A3.8/5.0
Behavior4/5

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

The annotations already cover readOnly, idempotent, and destructive hints. The description adds a notable behavioral detail: that it 'reports gaps to ADR Aggregator for tracking', which is not captured in the annotations. This extra context informs the agent about a potential side effect (external reporting) beyond the annotated read-only nature. However, it does not elaborate on the reporting mechanism or any permissions implied, so it is not fully transparent.

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?

The description is concise and well-structured. It opens with a clear one-sentence summary, then breaks down the two gap types into bullet-like numbered points, and ends with the reporting behavior. There is no redundant or verbose language, and every sentence earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description lacks information about what the tool returns to the caller. It mentions 'reports gaps to ADR Aggregator' but does not state whether the tool returns a list, a summary, or any direct output to the invoking agent. Since there is no output schema, the description should at least specify the return format or indicate that no direct output is provided. This omission leaves the agent uncertain about the tool's immediate effect and return value.

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?

The schema provides descriptions for all 6 parameters, covering 100% of them. The tool description itself does not add any extra meaning or context for the parameters; it relies entirely on the schema. Since schema coverage is high and the descriptions are adequate, the baseline score of 3 is appropriate.

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?

The description clearly states the tool's purpose: it scans the codebase and compares with ADRs to detect two specific types of gaps (ADR-to-code and code-to-ADR). This is a specific verb (scan, compare, detect) tied to a specific resource (local codebase and ADRs), and the two gap types are explicitly enumerated. It distinguishes itself from siblings like 'get_gaps' (which likely retrieves gaps rather than analyzing them) enough for an agent to choose it correctly.

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?

The description does not explicitly state when to use this tool instead of alternatives. It implies the use case (finding gaps), but there is no mention of conditions like 'when you need a fresh analysis' or 'to retrieve existing gaps use get_gaps'. The description is functional but not prescriptive about scenarios or comparisons with sibling tools.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tosin2013/mcp-adr-analysis-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server