Skip to main content
Glama

EU CBAM Quarterly XML Report Generator API

cbam_xml_generator
Read-onlyIdempotent

Generate EU Carbon Border Adjustment Mechanism (CBAM) quarterly XML reports from shipment JSON or CSV with 8-digit CN code Annex I validation, sector aggregation, direct and indirect embedded tCO2e totals, and optional Excel audit workbook output. Deterministic offline compute, zero AI, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €15/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.02/call via x402 at https://radarbg.com/x402/cbam-xml-generator.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "eori": "DE123456789012345",
      "content": "CN Code,Country of Origin,Net Mass (t),Direct Emissions (tCO2e/t),Indirect Emissions (tCO2e/t),Supplier Name\n72085120,TR,42.500,1.85,0.42,Anatolia Steel Mills AS\n76011000,NO,18.200,1.62,0.18,Nordic Aluminium AS\n25232900,EG,120.000,0.78,0.09,Nile Cement Co\n",
      "quarter": "2026-Q4",
      "includeXml": true
    },
    "name": "cbam_xml_generator"
  }
}

Input Schema

NameRequiredDescriptionDefault
eoriNoOptional EU EORI importer identifier (e.g. DE123456789012345).
limitNoMaximum shipment items returned in JSON (1-2000).
contentNoRaw CBAM shipment CSV or XML text. Provide shipments, content, or fileBase64.
quarterNoReporting quarter in YYYY-Q1..Q4 format (default 2026-Q4).2026-Q4
fileNameNoOptional original filename.
shipmentsNoStructured array of shipment objects ({cnCode, originCountry, netMassTonnes, directEmissionsPerTonne, indirectEmissionsPerTonne, supplierName}).
fileBase64NoBase64-encoded CBAM shipment CSV or XML file (max 15 MB).
includeXmlNoInclude the generated EU CBAM XML string in the response.
includeXlsxNoInclude a base64-encoded Excel audit workbook.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, and open-world behavior. The description adds useful operational context: deterministic offline compute, zero AI, nothing stored, per-IP free limits, and API-key/x402 paid access. It stops short of detailing validation failure behavior or the response envelope.

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 description is dense and front-loads the core capability before operational details. The pricing and access URL text is somewhat marketing-oriented, but it remains compact enough for an API-selection decision.

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 and nine optional parameters, the description adequately names the main outputs: CBAM XML, sector aggregation, tCO2e totals, and optional Excel audit workbook. It does not fully describe the response JSON structure or error behavior, leaving a modest gap.

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 the input schema already explains all nine parameters in detail. The description reinforces that shipments can come as JSON or CSV and that Excel output is optional, but it does not add meaning beyond the schema for individual parameters.

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?

The description states a precise verb and resource: generating EU CBAM quarterly XML reports from shipment JSON or CSV, including validation, aggregation, and optional Excel output. This is specific enough to distinguish it from generic converters like csv_to_xml and from adjacent EU compliance tools.

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?

The intended use is implied through the CBAM quarterly reporting context and supported input formats, but there is no explicit when-to-use guidance, no exclusions, and no named alternatives such as eu_zm_report or cbam_tariff_check. An agent can infer usage but is not routed between alternatives.

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