Skip to main content
Glama

Explain an e-invoicing rule id

explain_rule
Read-onlyIdempotent

Explain one EN 16931 / XRechnung / Peppol BIS rule in plain English: what it requires, why, the business term it constrains, a concrete fix and an example. 270 rules explained — BR-, BR-CO-, BR--, BR-DE- and PEPPOL-EN16931-*. That is most, not all, of what the validator checks: a few arithmetic/decimal rules have no write-up yet, and for those it says so and links the rule reference rather than pretending the rule does not exist. FREE and needs no API key.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rule_idYesThe rule id, e.g. "BR-DE-15", "BR-CO-15", "BR-S-02", "PEPPOL-EN16931-R010". Case and separators are forgiving.

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already indicate readOnlyHint=true and idempotentHint=true, but the description adds valuable behavioral context beyond those: it discloses authentication/access (no API key), and transparently explains behavior for missing rules ('says so and links the rule reference rather than pretending the rule does not exist'). This is exemplary transparency.

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 front-loaded: the first sentence establishes the core purpose, followed by coverage scope, edge-case behavior, and cost/auth. Every sentence carries essential information without fluff or repetition, earning a perfect score.

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?

For a single-parameter read-only tool with no output schema, the description is remarkably complete. It not only states what the tool does but also describes the content of the explanation (what it requires, why, business term, fix, example), covers edge cases (unwritten rules), and provides access requirements. This gives the agent full context for invocation and expectation setting.

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 already provides full coverage of the single parameter rule_id with examples, so the baseline is 3. The description does add some context about the rule families (BR-*, BR-CO-*, etc.) and that some rules are not covered, which helps the agent understand what rule_id values are expected, but it doesn't add significant new semantics beyond the schema.

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 uses the specific verb 'Explain' and clearly identifies the resource: 'one EN 16931 / XRechnung / Peppol BIS rule'. It further details what the explanation includes (requires, why, business term, fix, example), making it distinct from sibling tools like validate_invoice or check_vies_status. This leaves no ambiguity about the tool's function.

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?

The description implies when to use it (to understand a rule) and notes coverage limitations ('most, not all' rules), providing helpful context for expectations. It also mentions 'FREE and needs no API key', which guides usage by distinguishing it as an accessible option. However, it does not explicitly list alternative tools or when-not-to-use conditions, so it stops short of full 5.

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.

TDQS

A4.7/5.0
Disambiguation5/5

Each tool targets a distinct resource and action: validation (two input formats), generation, rule explanation, company readiness, VIES status, platform listing, key issuance, and upgrade link. Even the two validation tools are clearly split by input type (JSON vs XML), and the descriptions explicitly prevent confusion.

Naming Consistency5/5

All tool names follow a consistent verb_noun snake_case pattern (check_, explain_, generate_, get_, issue_, list_, validate_). The verbs are precise and the nouns clearly indicate the target, with no mixing of conventions or vague terms.

Tool Count5/5

Nine tools is well within the ideal scope for a specialized e-invoicing compliance server. Each tool serves a distinct purpose in the workflow—validate, generate, explain, check company/VIES/platform status, and manage API keys—without redundancy or bloat.

Completeness5/5

The tool surface covers the full lifecycle of e-invoicing compliance: validation (JSON and XML), generation, rule explanation, and external status checks (company, VIES, approved platforms). API key management and upgrade paths are also included. No obvious missing operations for the stated purpose.

Resources