Skip to main content
Glama

peppol.sh

Create a company

create_company

Creates a company (the legal entity that sends invoices) in the workspace of the API key and returns its com_ ID. Run check_peppol_id first: the Peppol ID must fit the country, or the call fails. WARNING: when the KYC of the workspace is approved, the new company goes live on the real Peppol network at once, also with a ps_test_ key. Not idempotent: each call makes a new company. Free.

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

Input Schema

NameRequiredDescriptionDefault
ibanNoBank account IBAN of the company. Optional. A document of this company with a `payment_means` that has no `iban` and no `accounts` gets this IBAN in `payment_means.iban` when, with spaces and dashes removed, it is a valid IBAN (15 to 34 characters, two letters, and the IBAN check digits). The compact value is stored.
nameYesLegal company name.
emailNoContact email for the company. Optional.
tax_idNoVAT number (e.g., `BE0123456749`). Optional. A Peppol ID in the VAT scheme of the country must be this VAT number.
addressNoCompany address. Optional.
countryYesISO 3166-1 alpha-2 country code. Must be a country with active Peppol support (e.g. `BE`); trimmed and upper-cased server-side. Unknown or non-active codes are rejected with `invalid_country`.
peppol_idNoPeppol participant identifier in `scheme:id` form (e.g. `0208:0123456749`). Required, except for a Belgian company with a `company_registration_id`: it defaults to `0208:<company_registration_id>` without dots and spaces. Without one the request fails with `missing_peppol_id`. The scheme must be active in the OpenPeppol participant identifier scheme code list and the identifier must have its format and check digit (`invalid_peppol_id`). The identifier has 1 to 130 characters: letters, digits, `-`, `.`, `_` and `~`, no whitespace; a `0208` identifier is 10 digits (`0208:0410086603`, not `0208:0410.086.603`) and a `9925` identifier is `BE` plus those digits. The scheme must belong to `country` or be international (`peppol_id_country_mismatch`). An EU VAT scheme (`99xx`) takes the VAT number with its country prefix (`9930:DE123456788`; Greece `9933` without `EL`), and it must be the VAT number in `tax_id` when `tax_id` is one (`peppol_id_tax_id_mismatch`).
invoice_contactNoThe Invoice contact of the company: the default for the seller contact of a document. When a document is accepted, each of `from.contact_name`, `from.email` and `from.phone` that it leaves out gets the value here; a value of the document wins, per field. The result is stored with the document, so a later change here leaves documents already accepted as they are. Peppol requires the three fields when seller and buyer are both in Germany (DE-R-005, DE-R-006, DE-R-007). Optional. On `PATCH`, a field that is absent stays as it is, `null` for a field clears it, and `null` for the object clears the three fields. A refused value fails with `invalid_field` (400) and the field in `param` (`invoice_contact.phone`). It is separate from the company `email`, which is never put on a document.
company_registration_idNoCompany registration number (e.g. KBO/CBE number). Optional.

Output Schema

NameRequiredDescriptionDefault
idYesThe com_ ID; other tools take it as company_id.
nameYes
tax_idYes
countryYes
is_liveYesTrue when the company went live on the Peppol network.
peppol_idYes
invoice_contactYesThe Invoice contact: the default for the seller contact name, email and phone of a document that leaves them out.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Adds substantive behavior beyond the annotations: the company goes live on the REAL Peppol network immediately when workspace KYC is approved, even with a ps_test_ key, and the call is non-idempotent because each call creates a new company. openWorldHint=true alone would never convey the irreversible real-network publication or the cost ('Free'). No contradiction with readOnlyHint=false / destructiveHint=false.

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?

Five short sentences, front-loaded with purpose then prerequisite then the safety warning. Every clause carries non-obvious information (return ID, prerequisite tool, live-network risk, idempotency, cost) with no filler.

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?

An output schema exists, so the return shape need not be explained, and the description still names the com_ ID. For a 9-parameter creation tool with real-world side effects it covers the critical risks and failure modes; it omits auth/scope requirements beyond 'workspace of the API key' and any note on rate limits or rollback of a wrongly created company.

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 the peppol_id/country/tax_id cross-field rules are already fully documented in the schema, so the description adds little parameter-level meaning. It only restates the country-fit constraint for peppol_id as a call-time failure mode; no additional syntax, defaults, or format guidance is contributed.

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+resource ('Creates a company (the legal entity that sends invoices)'), scopes it to 'the workspace of the API key', and names the return value (com_ ID). This clearly separates it from read-side siblings such as get_company and list_companies without the agent 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?

Gives an explicit prerequisite workflow: 'Run check_peppol_id first: the Peppol ID must fit the country, or the call fails.' It does not explicitly say when not to use it (e.g. existing companies → get_company), but the create-vs-read distinction is unambiguous from the wording.

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