Skip to main content
Glama

peppol.sh

Check a Peppol ID

check_peppol_id
Read-onlyIdempotent

Checks the Peppol ID of a company before create_company: the scheme must exist, be active, belong to the company country (or be international), and the identifier must have the right format and check digit. A VAT scheme (99xx) needs the country prefix and the VAT number, not a register number; with tax_id, it must be the VAT number in the tax ID. Pass peppol_id to check one, or registration_id (VAT or registration number) to get the suggested Peppol ID. Free, needs no API key, makes no network call. To see if an ID can receive invoices, use lookup_participant.

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": {
      "country": "<country>"
    },
    "name": "check_peppol_id"
  }
}

Input Schema

NameRequiredDescriptionDefault
tax_idNoThe tax ID (VAT number) of the company, for example DE240712418. With peppol_id, a VAT-scheme Peppol ID must be this VAT number.
countryYesISO 3166-1 alpha-2 country of the company, for example BE.
peppol_idNoThe Peppol ID to check, as scheme:id, for example 0208:0123456749.
registration_idNoA VAT or registration number to derive the Peppol ID from, for example BE0123456749. With peppol_id, the registration number of the company, to name a register number in a VAT scheme.

Output Schema

NameRequiredDescriptionDefault
validYesTrue when peppol_id passes every check.
messageYesWhat is wrong and what to use.
peppol_idYesThe normalized or suggested Peppol ID, or null.
suggestedYesTrue when peppol_id was derived from registration_id.
error_codeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Adds real behavioral context beyond the annotations: cost ("Free"), no API key requirement, and that it "makes no network call" — the latter reinforcing openWorldHint=false rather than contradicting it. It also discloses the actual validation rules applied, which no annotation conveys. It stops short of saying what an invalid ID produces (error vs. a negative result object), which the output schema presumably carries.

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

Conciseness4/5

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

Front-loaded with purpose, then rules, then parameter routing, then the sibling pointer — a sensible order with little filler. Some clauses are dense (the VAT-scheme/99xx sentence requires a careful read) but nothing is redundant.

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 an output schema present, return values need not be described, and the description covers purpose, validation rules, both input modes, and the sibling handoff. The main residual gap — outcome on a failed check — is plausibly covered by the output schema, keeping this short of a 5.

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; the description goes further by explaining the two operating modes and the cross-parameter coupling ("with tax_id, it must be the VAT number in the tax ID"; registration_id naming a register number inside a VAT scheme). That relationship-level guidance is meaningfully more than the per-field schema descriptions provide.

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?

Opens with a specific verb and resource ("Checks the Peppol ID of a company") and immediately scopes its role ("before create_company"). The enumerated validation rules (scheme exists/active, country match or international, format and check digit) make the tool's job unmistakable and distinguish it from lookup_participant.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

States when to use it (before create_company), how to drive each mode ("Pass peppol_id to check one, or registration_id ... to get the suggested Peppol ID"), and names the sibling to use instead when the question is invoice-receivability ("use lookup_participant"). Both the when and the when-not are explicit.

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