Skip to main content
Glama

FaeBill E-Rechnung

Explain finding code

explain_einvoice_finding
Read-onlyIdempotent

Explain a validation finding code from XRechnung/ZUGFeRD/EN 16931 business rules (e.g. BR-CO-25, BR-DE-15, PEPPOL-EN16931-R…) in plain language and suggest how to fix it in the invoice data. Unknown codes are reported as unknown.

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_einvoice_finding"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYes
localeNoOutput language, default de.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/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 still adds real behavioral context: the response content (explanation plus remediation advice in the invoice data) and, importantly, the edge-case behavior that unrecognized codes are returned as unknown rather than failing.

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 carrying the verb, resource, domain, and outputs, followed by one short edge-case clause. No filler, no restatement of the title, and nothing that would slow an agent down.

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 no output schema, the description correctly takes on the burden of describing return content and unknown-code handling, which is enough for a simple two-parameter lookup tool. The only omission is that the locale/output-language behavior is left entirely to the schema rather than mentioned alongside the explanation output.

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 only 50%, and the undescribed parameter is the central one, `code`. The description compensates by giving the code namespace and format examples (BR-CO-25, BR-DE-15, PEPPOL-EN16931-R…), which the bare regex pattern does not convey. The `locale` parameter's default is documented in the schema but not echoed here, leaving a small gap.

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 a specific resource ('a validation finding code from XRechnung/ZUGFeRD/EN 16931 business rules'), with concrete example codes that pin down the domain. It also states the two outputs (plain-language explanation and a fix suggestion), which clearly separates it from sibling validation tools like validate_einvoice and read_einvoice.

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: an agent can infer this is for interpreting codes produced by validation, but the description never says 'use after validate_einvoice reports an error' nor names any alternative for related questions such as obligation checks. No when-not-to-use guidance or exclusions are given.

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