Skip to main content
Glama
BC MCP Server

BC MCP Server

atdd_validate_comments

Validates AL test code comments for a strict GIVEN-WHEN-THEN structure and flags any extra comments, ensuring test scenarios stay consistently formatted.

Instructions

Validate GIVEN-WHEN-THEN comment structure (no extra comments allowed)

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": {
      "code": "<code>"
    },
    "name": "atdd_validate_comments"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesAL test code to validate

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. The parenthetical tells the agent that additional comments fail validation, which is genuinely useful strictness information, but nothing is said about whether the tool reports a pass/fail verdict or a list of offending lines, or how failures surface (exception vs. structured result) — and there is no output schema to fill that gap.

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?

One short sentence with the resource front-loaded and no filler. The parenthetical is efficient, though the brevity trades off against the missing return-behavior detail.

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?

For a simple one-parameter validator, the definition covers what is checked and the key strictness rule. With no annotations and no output schema, it should also say what the result looks like and roughly what counts as a valid GIVEN-WHEN-THEN header/placement, which it does not.

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% with a single required "code" parameter already documented as "AL test code to validate." The description adds no further meaning about the parameter — for example whether it is a whole file, a single test method, or whether comments must be inside the method body — so the baseline 3 applies.

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 ("Validate") plus the exact resource ("GIVEN-WHEN-THEN comment structure"), which cleanly separates it from the sibling atdd_validate_naming and atdd_validate_scenarios tools. It stops short of naming those siblings or stating scope boundaries 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 by the tool's name and the phrase "no extra comments allowed" — an agent can infer this is a lint check run against ATDD code. There is no explicit when-to-use, when-not-to-use, or comparison to the other atdd_validate_* checks.

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