Skip to main content
Glama

Prometiam Risk Intelligence

Check e-invoicing reference

einvoicing_check
Read-only

Check an e-invoicing reference, or give the e-invoicing identifiers of a company. Two modes. (1) type and reference: an OFFLINE check of one reference, such as a party identifier (a VAT or tax number), a routing code (de_leitweg_id, it_sdi_code) or an invoice identifier (pl_ksef_number, br_nfe_key). The answer says whether it is well formed: basis check_digit means it has the form its publisher defines and its check characters match; basis format means only the form was checked; parts decodes a structured value as written in it. Neither basis means the reference was issued, is registered or active, or that a tax authority accepts an invoice that carries it; no live status from a national tax authority is served. type peppol_id also looks the participant up live in the Peppol network (registered at the time of the check; registered does not mean it receives invoices: receives_invoices, receives_credit_notes and document_types come from its SMP, and where the SMP is not read, for example when its robots.txt disallows it, they are null and document_types_unread says why). (2) country and company_number, or vat: for a company the API serves, its own e-invoicing identifiers (party_ids), its Peppol participant IDs looked up live (only those its company number and VAT number give: a company not found under them may be registered under another ID or receive e-invoices outside Peppol; the Peppol Directory is not read), and for Estonia the e-invoice recipients register (Contains data from the Estonian e-Business Register (RIK), CC BY 4.0). Prometiam is not a Peppol access point: it does not send, receive or validate invoices. 1 credit a call, errors free. The full list of types, by country, is on https://www.prometiam.com/risk-api/docs#einvoicing-check.

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

Input Schema

NameRequiredDescriptionDefault
vatNoCompany mode: the VAT number of the company, with its country prefix.
typeNoReference mode: the reference type, for example de_leitweg_id, pl_ksef_number, it_sdi_code, fr_siren, br_nfe_key or peppol_id. The types are listed on the docs page; an unknown type is refused and the types of its country are named.
countryNoCompany mode: the country of company_number.
referenceNoReference mode: the value to check. Required with type.
company_numberNoCompany mode: the company number in its register, with country.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / country / enum
      Previous value: -[
      -  "ES",
      -  "FR",
      -  "GB",
      -  "IE",
      -  "PL",
      -  "NO",
      -  "FI",
      -  "SE",
      -  "HR",
      -  "BE",
      -  "DK",
      -  "EE",
      -  "SK",
      -  "CH",
      -  "LV",
      -  "CY",
      -  "RO",
      -  "LT",
      -  "CA",
      -  "AU",
      -  "JP",
      -  "IL",
      -  "BR",
      -  "AR",
      -  "UA",
      -  "RS",
      -  "SI",
      -  "KR",
      -  "MT",
      -  "NC",
      -  "PE",
      -  "HN",
      -  "GT",
      -  "MD",
      -  "UY",
      -  "DO",
      -  "NZ",
      -  "BG",
      -  "GE",
      -  "TZ",
      -  "ZM",
      -  "EC",
      -  "CL",
      -  "CO",
      -  "SG",
      -  "TW",
      -  "CZ",
      -  "DE",
      -  "IT",
      -  "IN",
      -  "AT",
      -  "GR",
      -  "LU",
      -  "HU",
      -  "PT",
      -  "JE",
      -  "MX",
      -  "NL",
      -  "US"
      -]New value: +[
      +  "ES",
      +  "FR",
      +  "GB",
      +  "IE",
      +  "PL",
      +  "NO",
      +  "FI",
      +  "SE",
      +  "HR",
      +  "BE",
      +  "DK",
      +  "EE",
      +  "SK",
      +  "CH",
      +  "LV",
      +  "CY",
      +  "RO",
      +  "LT",
      +  "CA",
      +  "AU",
      +  "JP",
      +  "IL",
      +  "BR",
      +  "AR",
      +  "UA",
      +  "RS",
      +  "SI",
      +  "KR",
      +  "MT",
      +  "NC",
      +  "PE",
      +  "HN",
      +  "GT",
      +  "MD",
      +  "UY",
      +  "DO",
      +  "NZ",
      +  "BG",
      +  "GE",
      +  "TZ",
      +  "ZM",
      +  "EC",
      +  "CL",
      +  "CO",
      +  "SG",
      +  "TW",
      +  "CZ",
      +  "DE",
      +  "IT",
      +  "IN",
      +  "AT",
      +  "CN",
      +  "VG",
      +  "LU",
      +  "KY",
      +  "HU",
      +  "PT",
      +  "JE",
      +  "LI",
      +  "AE",
      +  "GG",
      +  "TR",
      +  "PA",
      +  "SA",
      +  "IS",
      +  "BS",
      +  "MU",
      +  "IM",
      +  "BM",
      +  "ZA",
      +  "GR",
      +  "MX",
      +  "NL",
      +  "US"
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / country / enum
      Previous value: -[
      -  "ES",
      -  "FR",
      -  "GB",
      -  "IE",
      -  "PL",
      -  "NO",
      -  "FI",
      -  "SE",
      -  "HR",
      -  "BE",
      -  "DK",
      -  "EE",
      -  "SK",
      -  "CH",
      -  "LV",
      -  "CY",
      -  "RO",
      -  "LT",
      -  "CA",
      -  "AU",
      -  "JP",
      -  "IL",
      -  "BR",
      -  "AR",
      -  "UA",
      -  "RS",
      -  "SI",
      -  "KR",
      -  "MT",
      -  "NC",
      -  "PE",
      -  "HN",
      -  "GT",
      -  "MD",
      -  "EC",
      -  "CL",
      -  "CO",
      -  "SG",
      -  "TW",
      -  "CZ",
      -  "DE",
      -  "IT",
      -  "IN",
      -  "AT",
      -  "GR",
      -  "LU",
      -  "HU",
      -  "PT",
      -  "JE",
      -  "MX",
      -  "NL",
      -  "US"
      -]New value: +[
      +  "ES",
      +  "FR",
      +  "GB",
      +  "IE",
      +  "PL",
      +  "NO",
      +  "FI",
      +  "SE",
      +  "HR",
      +  "BE",
      +  "DK",
      +  "EE",
      +  "SK",
      +  "CH",
      +  "LV",
      +  "CY",
      +  "RO",
      +  "LT",
      +  "CA",
      +  "AU",
      +  "JP",
      +  "IL",
      +  "BR",
      +  "AR",
      +  "UA",
      +  "RS",
      +  "SI",
      +  "KR",
      +  "MT",
      +  "NC",
      +  "PE",
      +  "HN",
      +  "GT",
      +  "MD",
      +  "UY",
      +  "DO",
      +  "NZ",
      +  "BG",
      +  "GE",
      +  "TZ",
      +  "ZM",
      +  "EC",
      +  "CL",
      +  "CO",
      +  "SG",
      +  "TW",
      +  "CZ",
      +  "DE",
      +  "IT",
      +  "IN",
      +  "AT",
      +  "GR",
      +  "LU",
      +  "HU",
      +  "PT",
      +  "JE",
      +  "MX",
      +  "NL",
      +  "US"
      +]
  3. Changed1 schema field changed
    • changedInput schema / properties / country / enum
      Previous value: -[
      -  "ES",
      -  "FR",
      -  "GB",
      -  "IE",
      -  "PL",
      -  "NO",
      -  "FI",
      -  "SE",
      -  "HR",
      -  "BE",
      -  "DK",
      -  "EE",
      -  "SK",
      -  "CH",
      -  "LV",
      -  "CY",
      -  "RO",
      -  "LT",
      -  "CA",
      -  "AU",
      -  "JP",
      -  "IL",
      -  "BR",
      -  "AR",
      -  "UA",
      -  "RS",
      -  "SI",
      -  "KR",
      -  "MT",
      -  "NC",
      -  "PE",
      -  "HN",
      -  "GT",
      -  "EC",
      -  "CL",
      -  "CO",
      -  "SG",
      -  "TW",
      -  "CZ",
      -  "DE",
      -  "IT",
      -  "IN",
      -  "AT",
      -  "GR",
      -  "LU",
      -  "HU",
      -  "PT",
      -  "JE",
      -  "MX",
      -  "NL",
      -  "US"
      -]New value: +[
      +  "ES",
      +  "FR",
      +  "GB",
      +  "IE",
      +  "PL",
      +  "NO",
      +  "FI",
      +  "SE",
      +  "HR",
      +  "BE",
      +  "DK",
      +  "EE",
      +  "SK",
      +  "CH",
      +  "LV",
      +  "CY",
      +  "RO",
      +  "LT",
      +  "CA",
      +  "AU",
      +  "JP",
      +  "IL",
      +  "BR",
      +  "AR",
      +  "UA",
      +  "RS",
      +  "SI",
      +  "KR",
      +  "MT",
      +  "NC",
      +  "PE",
      +  "HN",
      +  "GT",
      +  "MD",
      +  "EC",
      +  "CL",
      +  "CO",
      +  "SG",
      +  "TW",
      +  "CZ",
      +  "DE",
      +  "IT",
      +  "IN",
      +  "AT",
      +  "GR",
      +  "LU",
      +  "HU",
      +  "PT",
      +  "JE",
      +  "MX",
      +  "NL",
      +  "US"
      +]
  4. Added

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the readOnly/openWorld annotations, the description discloses that the reference check is offline, that the Peppol lookup is live at check time, that an SMP blocked by robots.txt yields null fields plus document_types_unread, that a company may be registered under another ID or receive e-invoices outside Peppol, and the cost model (1 credit per call, errors free). It also states the provider is not an access point and does not send, receive or validate invoices, which is exactly the framing an agent needs before quoting results.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The two-mode framing is front-loaded, which is good, but the body is a dense run of nested parentheticals and multi-clause sentences that are hard to parse on first read. Most content earns its place, yet the Estonian register attribution and some Peppol caveats could be tightened or moved to a secondary line without losing meaning.

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 five-parameter, no-output-schema tool with two operating modes, the description covers return semantics well: basis values (check_digit, format), parts decoding, registered status, receives_invoices, receives_credit_notes, document_types and document_types_unread. Mode 2 returns (party_ids, Estonian recipients register) are described more loosely, which leaves a small gap given there is no output schema to fall back on.

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%, so the baseline is 3, and the description goes further by giving example types (de_leitweg_id, pl_ksef_number, it_sdi_code, fr_siren, br_nfe_key, peppol_id), explaining that an unknown type is refused and its country's types are named, and defining the vat/company_number pairing as an alternative in mode 2. It adds real meaning about how parameters combine across modes, though it does not say whether the two mode families are mutually exclusive or how conflicting inputs are resolved.

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 ('check') plus the exact resources (an e-invoicing reference, or a company's e-invoicing identifiers) and immediately splits the tool into two named modes with their respective inputs. An agent can tell this apart from company_detail or companies_lookup because the description fixes the scope to e-invoicing identifiers and Peppol participant data.

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?

Mode selection is explicit: '(1) type and reference' vs '(2) country and company_number, or vat', with a concrete list of reference types per mode. It also sets expectations about what a positive result does and does not mean (not proof of issuance, not tax-authority acceptance). It stops short of naming a sibling tool to use instead when the goal is general company data, so it is clear context but no explicit alternatives.

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