# E-Invoice Space

> Validate e-invoices (ZUGFeRD, Factur-X, XRechnung, EN 16931) as PDF or XML with Mustang and KoSIT.

- name: space.e-invoice/validation
- version: 1.0.0
- connection class: R1 (autonomous)
- trust: 83/100 flags: no-repository
- quality: 100/100 (new)
- owner: not claimed
- descriptor: https://api.protogrid.dev/v1/servers/space.e-invoice%2Fvalidation
- tools: https://api.protogrid.dev/v1/servers/space.e-invoice%2Fvalidation/tools

**An agent can connect on its own if it already holds `VALIDATION_TOKEN`.** Remote endpoint behind a static API key or header. The registry never sees the value; the agent fills the placeholder.

## Connection (mcpServers)

```json
{
  "mcpServers": {
    "validation": {
      "type": "http",
      "url": "https://api.e-invoice.space/mcp",
      "headers": {
        "Authorization": "Bearer ${VALIDATION_TOKEN}"
      }
    }
  }
}
```

Placeholders to fill: `${VALIDATION_TOKEN}`.

## Trust

- hygiene: 80
- liveness: 100
- freshness: 100
- provenance: 55
- drivers: +dns-namespace +website +reachable +uptime-100% +updated-2d-ago -no-repository
- Derived from observable signals (official registry feed and our own credential-free probes); no code audit performed.

## Quality 100/100 (new)

### protocol: 100 (weight 25)

- pass `protocol.modern`: supports 2026-07-28 (server/discover)
- pass `protocol.stateless`: answers without a session
- pass `protocol.transport`: streamable HTTP
- pass `protocol.list_ttl`: tool list is cacheable (ttlMs 3600000)

### authorization: n/a (weight 15)

- n/a `auth.prm`, `auth.as_metadata`, `auth.cimd`: no remote uses OAuth
- n/a `auth.secret_in_url`: no templated URL

### tool hygiene: 100 (weight 30)

- pass `tools.descriptions`: every tool has a description
- pass `tools.description_length`: descriptions are concise
- pass `tools.schemas`: every tool has an object input schema
- pass `tools.annotations`: 2 of 2 tools declare readOnlyHint or destructiveHint
- pass `tools.directory_hints`: every tool declares readOnlyHint, destructiveHint, idempotentHint and openWorldHint
- pass `tools.token_cost`: about 406 tokens to load every tool
- pass `tools.api_dump`: tools are not a one-to-one API dump
- pass `tools.hidden_text`: no hidden text in tool names, descriptions, schemas or annotations
- pass `tools.poisoning`: no instructions aimed at the model in tool definitions

### stability: n/a (weight 15)

- n/a `stability.changes`, `stability.rug_pull`, `stability.new_links`: tool history recorded for 1 of the 7 days needed

### dependencies: n/a (weight 15)

- n/a `deps.known_vulns`, `deps.mcp_sdk_version`, `deps.resolvable`: no npm or PyPI package

- tools: 2, about 406 tokens to load them all
- tool set hash: 9c84e7c2463d2b77d91c9c9d908be7f6
- badge: [![protogrid quality](https://protogrid.dev/badge/space.e-invoice/validation.svg)](https://protogrid.dev/servers/space.e-invoice/validation)
- Checks run on what our credential-free, read-only probes observe; tools are never called and no code audit is performed.

### Definition changes

_No changes to tool, prompt or resource template definitions recorded._

## Remotes

- https://api.e-invoice.space/mcp (streamable-http, auth api_key ${VALIDATION_TOKEN}, reachable true, uptime30d 1)

## Packages

_none_

## Tools (2)

- `get_usage`: How many validations the API key has used this calendar month (UTC) and its monthly quota (`null` = unlimited). Free, does not count.
- `validate_invoice`: Validate one e-invoice and return the verdict `valid`, the per-stage `summary`, the `format` (container, syntax, profile), the problems as `findings` (German titles, official rule texts, affected EN 16931 business terms) and the extracted invoice data `invoice`. Pass an XML invoice as `xml` (plain text), a PDF (ZUGFeRD, Factur-X) or any file as `file_base64`. Max. 30 MB. Takes about 1 to 10 seconds and counts against the monthly quota.
