Skip to main content
Glama

E-invoice validator & repair check (XRechnung, Peppol BIS 3, EN 16931)

Explain an e-invoice business rule

explain_rule
Read-only

Explain an EN 16931 / XRechnung / Peppol business rule by id (e.g. BR-CO-10, BR-DE-15, PEPPOL-EN16931-R001): what it means and how to fix it.

Input Schema

NameRequiredDescriptionDefault
ruleYesRule id, e.g. BR-CO-10

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already establish readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description goes beyond that by disclosing the content of the response (rule meaning plus remediation guidance), which is exactly what an agent needs to know before calling a pure lookup.

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 sentence with the action and scope front-loaded, followed by the concrete return value. No filler and nothing an agent must read twice.

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?

For a one-parameter read-only lookup with no output schema, the description is sufficient: it says what comes back and which rule families are supported. The only omission is behavior on an unrecognized rule id (error vs. nearest match), a minor gap.

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 the single parameter is documented as 'Rule id, e.g. BR-CO-10'. The description's example ids (BR-CO-10, BR-DE-15, PEPPOL-EN16931-R001) reinforce accepted formats but add little beyond the schema, so the baseline of 3 applies.

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 (Explain) and resource (business rule by id), scoped to named standards (EN 16931 / XRechnung / Peppol), and clarifies the deliverable: 'what it means and how to fix it'. This is clearly distinct from the sibling validate_einvoice, which checks documents rather than explaining rule semantics.

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 phrase 'how to fix it' implies the natural workflow (look up a rule after a validation failure), but the description never states when to use this versus validate_einvoice or what to do if an id is unknown. Usage is inferable rather than explicit.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources