Skip to main content
Glama

EU Intrastat Trade Declaration Helper API - CN8

intrastat_helper
Read-onlyIdempotent

Validate, classify, and aggregate EU intra-community dispatches and arrivals for monthly Intrastat reporting. Accepts JSON shipment arrays or CSV files, checks 8-digit CN8 commodity codes (chapters 01-97), EU member state + XI partner codes, domestic exclusions, Incoterms, nature-of-transaction codes, and supplementary unit requirements, then outputs aggregated declaration rows and ready-to-import CSV. Deterministic pure Python, zero AI. 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.01/call via x402 at https://radarbg.com/x402/intrastat-helper.

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": {
      "shipments": [
        {
          "value": 4200.5,
          "cnCode": "61091000",
          "netMassKg": 180,
          "deliveryTerms": "DAP",
          "partnerCountry": "FR",
          "supplementaryQty": 600
        },
        {
          "value": 1850.25,
          "cnCode": "61091000",
          "netMassKg": 75.4,
          "deliveryTerms": "DAP",
          "partnerCountry": "FR",
          "supplementaryQty": 260
        },
        {
          "value": 12400,
          "cnCode": "84713000",
          "netMassKg": 42.5,
          "deliveryTerms": "FCA",
          "partnerCountry": "NL",
          "supplementaryQty": 15
        }
      ],
      "ownCountry": "DE",
      "defaultFlow": "dispatch"
    },
    "name": "intrastat_helper"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum rows returned in declaration/problems/warnings (1-2000).
contentNoAlternative to shipments: raw CSV text with CN code, Partner country, and Value columns.
shipmentsNoArray of shipment lines (1-5000). Each: {cnCode, partnerCountry, value, netMassKg?, flow?, nature?, deliveryTerms?, supplementaryQty?}.
fileBase64NoAlternative to shipments: base64-encoded CSV file.
ownCountryNoOptional 2-letter EU code of your own member state (flags domestic shipments as errors).
defaultFlowNoDefault trade flow when a line omits flow: dispatch or arrival.dispatch
defaultNatureNoDefault 2-digit nature-of-transaction code (default 11).11

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld, but the description adds real behavior beyond them: deterministic pure-Python execution with zero AI, free-tier cap of 5 calls/day per IP, and the two auth paths (Radar API key via X-API-Key or $0.01/call via x402). It does not detail what is returned when validation fails or how partial problems are reported, leaving a gap.

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?

Two dense sentences front-load the purpose, accepted inputs, validation scope, and outputs, followed by operational details on limits and auth. The pricing and URL detail is compact and functional rather than padding, though the promotional framing is slightly more than a caller strictly needs.

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?

For a seven-parameter, no-output-schema tool with nested shipment objects, the description covers purpose, inputs, validation rules, and output shape reasonably well. It does not explain what the problems/warnings collections contain, how partial failures are surfaced, or how the limit parameter interacts with large shipment arrays, leaving some operational ambiguity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100 percent, so parameter names and types are already documented, yet the description adds domain meaning by explaining the validation each field undergoes: CN8 code chapters 01-97, EU state plus XI partner codes, domestic exclusions, Incoterms, nature-of-transaction codes, and supplementary-unit rules. This gives an agent reasons behind the parameters that the schema alone does not convey.

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 specific verbs (validate, classify, aggregate) against a specific resource (EU intra-community dispatches and arrivals for monthly Intrastat reporting), and notes the output form (aggregated declaration rows plus CSV). This is clearly distinct from siblings like eu_vat_calculator or eu_zm_report.

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 use – monthly Intrastat reporting, accepting either JSON shipment arrays or CSV files – which tells an agent the input situations it fits. It does not, however, state when to prefer a sibling tool or explicitly exclude scenarios, so it stops short of full routing guidance.

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