Skip to main content
Glama

Invoiceer e-invoicing tools

Check a Leitweg-ID

check_leitweg_id
Read-only

Check a German Leitweg-ID (buyer reference BT-10 for invoices to German public authorities) against the official format and check digit (spec v2.0.2), and whether the authority is registered on Peppol (peppol_registered). Returns validity, the parts and the expected check digits.

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": {
      "leitweg_id": "<leitweg_id>"
    },
    "name": "check_leitweg_id"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoen
leitweg_idYese.g. 991-33333TEST-33

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds value beyond that: it pins the spec version (v2.0.2), explains the two distinct checks performed, and lists what is returned (validity, parts, expected check digits). It omits auth/rate-limit detail, but for a read-only check that matters little.

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?

A single dense sentence, front-loaded with the verb and resource, and the return-value clause closes it efficiently. No padding, though the parenthetical BT-10 definition and spec version make it slightly heavy.

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 no output schema, the description usefully enumerates the return fields, and it defines the domain concept and spec version. The main gap is the unexplained lang parameter, which an agent cannot resolve from either structured or unstructured data.

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 coverage is 50%: leitweg_id carries an example, but lang has only an enum and is undocumented in both schema and description. The description explains what leitweg_id represents (BT-10 buyer reference) but never mentions the lang parameter or its effect on output, so it does not compensate for the coverage gap.

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) and resource (Leitweg-ID), defines what it is (buyer reference BT-10), and names the spec version and the two validation dimensions (format/check digit and Peppol registration). An agent can distinguish it from validate_einvoice and peppol_lookup without opening schemas.

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

Usage Guidelines3/5

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

Usage is implied: use it to validate a buyer reference and check Peppol registration. But there is no explicit guidance on when to prefer this over peppol_lookup (which likely also queries registration) or validate_einvoice, and no exclusions are stated.

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