Skip to main content
Glama

eRechio – German e-invoice validator (XRechnung, ZUGFeRD)

Explain an XRechnung / EN 16931 rule code

explain_rule
Read-onlyIdempotent

Explains a validation rule code (e.g. BR-DE-15, BR-CO-10, BR-S-08, PEPPOL-EN16931-R008) in German: what the rule requires, how to fix the invoice and which XML element is affected (UBL and CII path). Useful for findings from any validator, e.g. the KoSIT validator. No API key needed, not counted against the quota. Returns structuredContent {code, gefunden (boolean), titel, was, beheben, pfad_ubl, pfad_cii, mehr (link to the explanation page)}. Covers the 53 most frequent rules; for other codes gefunden is false and mehr links to the list of all explained rules (not an error).

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

Input Schema

NameRequiredDescriptionDefault
codeYesRule code as reported by the validator, e.g. "BR-DE-15" (case-insensitive, surrounding brackets or spaces are ignored).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (which already cover readOnly/idempotent/closed-world), it discloses operational facts an agent cannot infer: no API key required, not counted against quota, German-language output, and coverage limited to the 53 most frequent rules. The unknown-code behavior is spelled out as a non-error outcome, which is exactly the kind of trait that prevents mis-handling.

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?

Front-loaded with purpose and examples before the operational notes, and every clause carries information (language, quota, return shape, coverage limit). The return-field enumeration is dense but functional; it could be split into sentences for easier scanning.

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

Completeness5/5

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

There is no output schema, so the description must describe the return value — and it does, enumerating each structuredContent field including the gefunden flag and the mehr link. Combined with the coverage caveat, an agent has everything needed to call it and interpret both hit and miss responses.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the schema already documents case-insensitivity and bracket/space tolerance, so the baseline would be 3. The description adds value by illustrating multiple code families (BR-DE, BR-CO, BR-S, PEPPOL-EN16931) versus the schema's single example, reinforcing that codes come verbatim from validator output.

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 ("Explains") and resource (a validation rule code) and immediately grounds it with concrete code examples (BR-DE-15, BR-CO-10, PEPPOL-EN16931-R008). It is unmistakably distinct from the sibling validate_invoice: this one interprets a rule, it does not run validation.

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

Usage Guidelines4/5

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

"Useful for findings from any validator, e.g. the KoSIT validator" gives a clear triggering context, and the note that unknown codes yield gefunden=false rather than an error sets expectations for out-of-scope input. It stops short of naming an explicit alternative or a when-not-to-use case.

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