Skip to main content
Glama

ZUGFeRD-Bereit

Validate structured invoice JSON (free)

validate_invoice_json
Read-onlyIdempotent

Free EN 16931 / ZUGFeRD / XRechnung validation of a job draft (by job_token) or raw structured InvoiceRequest JSON. Runs model preflight, Schematron, and PDF/A-3 checks before payment or final generation.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "validate_invoice_json"
  }
}

Input Schema

NameRequiredDescriptionDefault
invoiceNoRaw InvoiceRequest JSON object to validate directly (if job_token is omitted).
job_tokenNoExisting job_token whose current draft should be validated.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and a closed world, so safety is covered structurally. The description adds genuine value by disclosing the three validation layers (model preflight, Schematron, PDF/A-3) and that the call is free, but it says nothing about what happens on failure or how validation findings are surfaced.

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?

Two sentences, zero filler, with the core action and supported standards front-loaded and the workflow timing in the second sentence. Every clause carries information.

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 two-parameter, non-destructive validation tool with full schema coverage, the definition covers purpose, inputs, and workflow position adequately. The remaining gap is that with no output schema, an agent still cannot tell what a validation result or failure looks like.

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 description coverage is 100% and both parameters already state their roles, including the 'if job_token is omitted' condition. The description restates the either/or choice between job_token and raw invoice JSON but adds no format, precedence, or precedence-on-conflict detail 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?

States a specific verb and resource (validate structured invoice JSON) plus the concrete standards it checks against (EN 16931 / ZUGFeRD / XRechnung), and names the two accepted input modes. An agent can distinguish it from generate_and_download, update_invoice_draft, or inspect_e_invoice without opening any schema.

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 phrase 'before payment or final generation' positions the tool in the workflow and implies it is a pre-flight gate ahead of create_payment_link/generate_and_download. It does not, however, give explicit when-not guidance or name a sibling alternative for cases where the draft is already final.

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