Skip to main content
Glama

Großhandels-CSV/JSON in BMEcat 2005 XML konvertieren

csv_to_bmecat_2005
Read-onlyIdempotent

Converts wholesale price lists in CSV or JSON into clean, XML-escaped BMEcat 2005 T_NEW_CATALOG catalogs with supplier/product blocks, UN/ECE unit normalization, GTIN validation, and tiered pricing.

Instructions

Erzeugt aus einer Großhandels-Preisliste (CSV mit Semikolon oder Komma, oder JSON) ein sauberes, XML-escaped BMEcat-2005-T_NEW_CATALOG-XML inklusive HEADER, SUPPLIER, PRODUCT-Blöcken, UN/ECE-Einheitennormalisierung, GS1-GTIN-Prüfung und BigInt-Staffelpreisen.

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

Input Schema

NameRequiredDescriptionDefault
pfadNoRelativer Pfad zur CSV- oder JSON-Preisliste innerhalb von BMECAT_ORDNER
inhaltNoDirekter CSV- oder JSON-Inhalt
spracheNoSprachcode nach ISO 639-2 (Standard: deu)
waehrungNoWährung nach ISO 4217 (Standard: EUR)
katalogIdNoOptionale Katalog-ID (Standard: KAT-2005-01)
katalogNameNoOptionaler Katalogname
lieferantIdNoLieferanten-ID im HEADER/SUPPLIER
lieferantNameNoName des Lieferanten im HEADER/SUPPLIER
stueckEinheitNoZiel-UN/ECE-Code für Stück/STK (Standard: C62)
katalogVersionNoOptionale Katalogversion (Standard: 1.0)
generierungsDatumNoOptionales ISO-Datum YYYY-MM-DD für DATETIME

Output Schema

NameRequiredDescriptionDefault
okYes
xmlYes
befundeYes
waehrungYes
eingabeTypYes
fehlerAnzahlYes
artikelAnzahlYes
staffelpreiseAnzahlYes
normalisierteEinheitenYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, destructiveHint=false, idempotent), so the description usefully adds behavioral traits instead: XML escaping, UN/ECE unit normalization, GS1 GTIN checksum validation and BigInt tiered prices. It stops short of saying what happens on a failed GTIN check or whether output is written to disk or only returned.

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?

A single front-loaded sentence with the verb first and a dense but purposeful feature list; every clause (formats, escaping, normalization, GTIN check, tiered prices) tells the agent something actionable.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 11 fully described parameters, an output schema and rich annotations, the description is largely sufficient. It is still silent on error/failure behavior and on the file-vs-return question, which matters for a conversion tool that validates GTINs.

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%, so every parameter is already documented in structured form; the description adds no per-parameter semantics beyond noting the accepted CSV delimiters and JSON input. Baseline 3 is appropriate when the schema carries the parameter burden.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a precise verb and transformation ('Erzeugt aus einer Großhandels-Preisliste ... ein ... BMEcat-2005-T_NEW_CATALOG-XML'), and enumerates the produced blocks (HEADER, SUPPLIER, PRODUCT). It is unambiguous what the tool does, though it never contrasts itself with siblings like validate_bmecat or bmecat_to_erp_json.

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 by the highly specific purpose (feed a wholesale CSV/JSON price list, get BMEcat 2005 XML). There is, however, no explicit when-to-use, no prerequisites (e.g. that a valid BMEcat should subsequently be checked with validate_bmecat), and no exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.