Skip to main content
Glama

check_leitweg_id

Prüft eine Leitweg-ID (BT-10, Pflicht bei XRechnung an Bund, Länder und Kommunen): Aufbau, Kennzahl des Landes oder Bundes und Prüfziffer nach Modulo 97-10 (KoSIT-Formatspezifikation 2.0.2). Bei falscher oder fehlender Prüfziffer nennt die Antwort die passende ID in corrected_id. Ob die ID vergeben ist, kann nur der Auftraggeber bestätigen; ein öffentliches Verzeichnis gibt es nicht. Zählt auf kein Kontingent. Es wird nichts gespeichert.

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
languageNoSprache der Meldungen. Standard 'de'.
leitweg_idYesDie Leitweg-ID, etwa '04011000-1234512345-06'

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses the validation standard applied, that the response exposes a corrected_id on a bad check digit, that it consumes no quota, and that nothing is persisted. What it does not describe is the shape of a successful response (e.g. validity flags for structure vs. check digit), leaving some behavioral surface unstated.

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?

The purpose and the validation scope are front-loaded, and each trailing sentence (corrected_id, assignment caveat, no quota, no storage) carries distinct information. It is dense but not padded; only the quota sentence is marginal for an agent's decision-making.

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 two-parameter read-only check with no output schema and no annotations, the description covers what is validated, the standard referenced, the fallback output field, and side-effect/rate-limit behavior. The main remaining gap is that the overall response structure and the role of the language parameter are left to the schema.

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 schema already documents both parameters, including the example format for leitweg_id, so the baseline of 3 applies. The description adds no meaning about the 'language' parameter, which affects the messages returned and is only explained in the schema.

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?

Names a specific verb and resource ('Prüft eine Leitweg-ID') and immediately scopes it: structure, state/federal key figure, and Modulo 97-10 check digit per KoSIT spec 2.0.2. That is clearly a format/checksum validator, distinguishable from siblings like validate_invoice or check_consistency.

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 clear context for when this applies (BT-10 is mandatory for XRechnung to federal, state and municipal bodies) and states an important boundary: whether an ID is actually assigned can only be confirmed by the contracting authority, since no public directory exists. It does not explicitly route to or exclude a sibling tool, so it falls short of a 5.

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