EU Trade Explorer is an MCP server published by eu.tradedashboard, hosted at mcp.tradedashboard.eu. When last checked on 2026-11-23 it was working: it answers and lists its tools. It declares 6 tools, including get_documentation, get_data_range, get_overview, resolve_product_code, search_tools.
EU customs-trade & industrial-production statistics (Eurostat Comext/PRODCOM)
Nothing else in the archive shares these values.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
Read one complete MCP guide: `query-model` (access, shared query fields, pieces and baskets), `customs-codes` (segments, residuals and historical selections), `prodcom` (production mappings, suppression and availability), `methodology` (indicator formulas and interpretation), or `reporting` (short/long workflows and dashboard navigation). The same canonical text is available as `eu-trade://docs/<topic>` resources.
| Parameter | Type | Description |
|---|---|---|
| topic * | string | Short MCP guides with links to detailed website documentation. |
{
"name": "get_documentation",
"title": "Get Documentation",
"description": "Read one complete MCP guide: `query-model` (access, shared query\nfields, pieces and baskets), `customs-codes` (segments, residuals and\nhistorical selections), `prodcom` (production mappings, suppression and\navailability), `methodology` (indicator formulas and interpretation), or\n`reporting` (short/long workflows and dashboard navigation). The same\ncanonical text is available as `eu-trade://docs/<topic>` resources.",
"inputSchema": {
"type": "object",
"required": [
"topic"
],
"properties": {
"topic": {
"enum": [
"query-model",
"customs-codes",
"prodcom",
"methodology",
"reporting"
],
"type": "string",
"description": "Short MCP guides with links to detailed website documentation."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"required": [
"result"
],
"properties": {
"result": {
"type": "string"
}
},
"x-fastmcp-wrap-result": true
},
"annotations": {
"readOnlyHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}None yet. Changes appear after a server's second daily check.
Return the period coverage (`data_min`/`data_max`, 'YYYY-MM') actually cached for the given customs code(s) -- use before picking `period_start`/`period_end` so you don't request an empty window.
| Parameter | Type | Description |
|---|---|---|
| customs_codes | any | Customs code(s) to check coverage for. Omit for the overall store range. |
{
"name": "get_data_range",
"title": "Get Data Range",
"description": "Return the period coverage (`data_min`/`data_max`, 'YYYY-MM') actually\ncached for the given customs code(s) -- use before picking\n`period_start`/`period_end` so you don't request an empty window.",
"inputSchema": {
"type": "object",
"properties": {
"customs_codes": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string",
"description": "A canonical customs code, TOTAL, or a supported residual spelling."
},
"maxItems": 50
},
{
"type": "null"
}
],
"default": null,
"description": "Customs code(s) to check coverage for. Omit for the overall store range."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"required": [
"result"
],
"properties": {
"result": {
"type": "object",
"required": [
"data_min",
"data_max",
"selection"
],
"properties": {
"data_max": {
"anyOf": [
{
"type": "string",
"pattern": "\\d{4}-\\d{2}",
"description": "A calendar month, 'YYYY-MM'."
},
{
"type": "null"
}
],
"default": null,
"description": "The last month with data in the local store, over the codes' raw declarations."
},
"data_min": {
"anyOf": [
{
"type": "string",
"pattern": "\\d{4}-\\d{2}",
"description": "A calendar month, 'YYYY-MM'."
},
{
"type": "null"
}
],
"default": null,
"description": "The first month with data in the local store, over the codes' raw declarations (every definition)."
},
"selection": {
"type": "array",
"items": {
"type": "object",
"required": [
"customs_code",
"from_month",
"to_month",
"windows"
],
"properties": {
"windows": {
"type": "array",
"items": {
"type": "object",
"required": [
"data_min",
"data_max"
],
"properties": {
"data_max": {
"type": "string",
"pattern": "\\d{4}-\\d{2}",
"description": "The last month with data inside the window ('YYYY-MM')."
},
"data_min": {
"type": "string",
"pattern": "\\d{4}-\\d{2}",
"description": "The first month with data inside the window ('YYYY-MM')."
}
},
"additionalProperties": false
},
"description": "The months holding data inside the piece's window; an empty list means nothing is stored there."
},
"to_month": {
"anyOf": [
{
"type": "string",
"pattern": "\\d{4}-\\d{2}",
"description": "A calendar month, 'YYYY-MM'."
},
{
"type": "null"
}
],
"description": "The window's last month, ISO 'YYYY-MM'; null = the store coverage end."
},
"from_month": {
"anyOf": [
{
"type": "string",
"pattern": "\\d{4}-\\d{2}",
"description": "A calendar month, 'YYYY-MM'."
},
{
"type": "null"
}
],
"description": "The window's first month, ISO 'YYYY-MM'; null = the store coverage start."
},
"customs_code": {
"type": "string",
"description": "The piece's customs code."
}
},
"description": "The stored coverage of one piece: the months holding data inside its\nwindow, so gaps between definitions stay visible.",
"additionalProperties": false
},
"description": "For each piece given (the basket request form), the coverage of its window -- separate from the raw base coverage above."
}
},
"description": "GET /api/reference/data-range — cached period coverage ('YYYY-MM').",
"additionalProperties": false
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Headline figures: total import/export quantities, values and weighted-average prices per period, the trade balance, and a top-partner breakdown. The best first call for any new customs-code/reporter slice. The figures sit under `total` / `partners` / `balance`, each panel carrying its own `periods` axis; the metadata (units, residual share, selection notes) is in `header`.
| Parameter | Type | Description |
|---|---|---|
| query * | object | The customs-code/reporter/partner-set/period/frequency slice to query -- the same request body every tradedashboard.eu analytical endpoint takes. See its own field descriptions (customs_code, baskets, reporter, partner_set, period_start, period_end, frequency, n_top, ...) for details; exactly one of… |
| compact | boolean | If true, condense long numeric time series (more than ~6 points -- typically monthly/quarterly windows or wide multi-partner/multi-period breakdowns) into summary statistics (first, last, min, max, mean, pct_change) instead of returning every data point. Leave false for full-fidelity series (e.g. to… |
{
"name": "get_overview",
"title": "Get Overview",
"description": "Headline figures: total import/export quantities, values and\nweighted-average prices per period, the trade balance, and a top-partner\nbreakdown. The best first call for any new customs-code/reporter slice.\nThe figures sit under `total` / `partners` / `balance`, each panel\ncarrying its own `periods` axis; the metadata (units, residual share,\nselection notes) is in `header`.",
"inputSchema": {
"type": "object",
"required": [
"query"
],
"properties": {
"query": {
"type": "object",
"properties": {
"lang": {
"enum": [
"bg",
"cs",
"da",
"de",
"el",
"en",
"es",
"et",
"fi",
"fr",
"ga",
"hr",
"hu",
"it",
"lt",
"lv",
"mt",
"nl",
"pl",
"pt",
"ro",
"sk",
"sl",
"sv"
],
"type": "string",
"default": "en",
"description": "Language for translated labels in the response: one of the listed ones (the languages the metadata exists in); any other is refused."
},
"n_top": {
"type": "integer",
"default": 7,
"maximum": 100,
"minimum": 1,
"description": "Number of top entities (by volume/value) to break out individually in charts."
},
"baskets": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"required": [
"pieces"
],
"properties": {
"label": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The basket's display label; default: the pieces' codes joined with '+'."
},
"pieces": {
"type": "array",
"items": {
"type": "object",
"required": [
"customs_code"
],
"properties": {
"to_month": {
"anyOf": [
{
"type": "string",
"pattern": "\\d{4}-\\d{2}",
"description": "A calendar month, 'YYYY-MM'."
},
{
"type": "null"
}
],
"default": null,
"description": "Inclusive last month of the window, ISO 'YYYY-MM'; null = the request's period_end."
},
"from_month": {
"anyOf": [
{
"type": "string",
"pattern": "\\d{4}-\\d{2}",
"description": "A calendar month, 'YYYY-MM'."
},
{
"type": "null"
}
],
"default": null,
"description": "Inclusive first month of the window, ISO 'YYYY-MM'; null = the request's period_start."
},
"customs_code": {
"type": "string",
"description": "The customs code: 2/4/6/8 digits, 'TOTAL', or a residual spelling (850440XX, 85SSS999, 85SSS)."
}
},
"description": "Every declaration under one code in one optional month window.",
"additionalProperties": false
},
"maxItems": 50,
"minItems": 1,
"description": "The pieces summed into this basket."
}
},
"description": "A nonempty tuple of pieces summed into one displayed line.",
"additionalProperties": false
},
"maxItems": 50,
"minItems": 1
},
{
"type": "null"
}
],
"default": null,
"description": "The explicit basket form of the customs-code selection: a list of baskets, each a list of (customs_code, optional month window) pieces summed into one displayed line. Use it to clip a code to specific months or to chain successor codes (e.g. [{pieces: [{customs_code: '8524', to_month: '2006-12'}, {customs_code: '85241100', from_month: '2007-01'}]}] with a period starting before 2007). Every piece must meet the requested period. Exactly one of 'customs_code' and 'baskets' must be given."
},
"partners": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string",
"maxLength": 120
},
"maxItems": 300
},
{
"type": "null"
}
],
"default": null,
"description": "Explicit partner-country list that overrides 'partner_set' when present."
},
"reporter": {
"type": "string",
"default": "European Union",
"maxLength": 120,
"description": "Declaring entity: an EU Member State, an EU candidate country, Northern Ireland ('XI'), or one of the three aggregate presets ('European Union', 'Euro area', 'EU candidate countries'), or a predefined reporter group name."
},
"frequency": {
"enum": [
"month",
"quarter",
"year"
],
"type": "string",
"default": "quarter",
"description": "Resampling frequency for the series: 'month', 'quarter' or 'year'."
},
"period_end": {
"type": "string",
"pattern": "\\d{4}-\\d{2}",
"description": "Inclusive end of the analysis window, ISO month 'YYYY-MM'. Defaults to roughly three months ago — the latest period Eurostat typically has fully reported."
},
"partner_set": {
"type": "string",
"default": "non-EU countries",
"maxLength": 120,
"description": "Named partner preset, e.g. 'non-EU countries', 'EU countries', 'all countries', or a predefined partner group."
},
"customs_code": {
"anyOf": [
{
"type": "string",
"description": "A canonical customs code, TOTAL, or a supported residual spelling."
},
{
"type": "array",
"items": {
"type": "string",
"description": "A canonical customs code, TOTAL, or a supported residual spelling."
},
"maxItems": 50
},
{
"type": "null"
}
],
"default": null,
"examples": [
"3801",
[
"0901",
"0902"
],
"TOTAL",
"850440XX",
"85SSS"
],
"description": "Combined Nomenclature customs code(s), 2–8 digits, or the literal 'TOTAL' meta-aggregate (all products combined). Residual customs codes are requestable too (e.g. 850440XX, 85SSS999, 85SSS); see https://tradedashboard.eu/faq-en.html#customscode for details. Pass a list to compare codes side by side, or to aggregate them in views that fold several codes into one basket: their volumes are summed and prices volume-weighted across every tab — except the Cross-section views, which keep each code separate. Exactly one of 'customs_code' and 'baskets' must be given."
},
"period_start": {
"type": "string",
"default": {
"year": 2015,
"month": 1
},
"pattern": "\\d{4}-\\d{2}",
"description": "Inclusive start of the analysis window, ISO month 'YYYY-MM'."
},
"include_other": {
"type": "boolean",
"default": true,
"description": "Bundle entities outside the top-N into a single 'Other' bucket."
},
"group_reporters": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string",
"maxLength": 120
},
"maxItems": 300
},
{
"type": "null"
}
],
"default": null,
"description": "Explicit reporters for a custom reporter group. Each entry must be an EU Member State, EU candidate country, or Northern Ireland. When more than one is supplied the frame is aggregated into a synthetic group named after 'reporter'."
},
"remove_outliers": {
"type": "boolean",
"default": true,
"description": "Drop extreme unit-price outliers before computing weighted-average prices."
},
"include_residuals": {
"type": "boolean",
"default": true,
"description": "Include the residual customs-code layer: residual rows in the breakdown views (subcode-compare, concentration-compare, volatility heatmap), the residual share in the response header and the related notes. False hides all of it; non-residual figures are unaffected."
}
},
"description": "The customs-code/reporter/partner-set/period/frequency slice to query -- the same request body every tradedashboard.eu analytical endpoint takes. See its own field descriptions (customs_code, baskets, reporter, partner_set, period_start, period_end, frequency, n_top, ...) for details; exactly one of `customs_code` and `baskets` is required, everything else has a sensible default.",
"additionalProperties": false
},
"compact": {
"type": "boolean",
"default": false,
"description": "If true, condense long numeric time series (more than ~6 points -- typically monthly/quarterly windows or wide multi-partner/multi-period breakdowns) into summary statistics (first, last, min, max, mean, pct_change) instead of returning every data point. Leave false for full-fidelity series (e.g. to actually plot a chart); set true when you just need the headline trend and want to save context."
}
},
"additionalProperties": false
},
"outputSchema": {
"truncated": true,
"chars": 26897
},
"annotations": {
"readOnlyHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Resolve a free-text query or CN code(s) into validated customs code(s) with descriptions -- the recommended first step before using a code as `customs_code` in any other tool's `query`. Saves the search -> validate -> (optional) subtree round-trip: a bare keyword runs a search, a single code (or comma-separated list) is validated and described directly. Tip: Comext/CN nomenclature is frequently coarser than a colloquial product name (e.g. there is no code for "glass jars" alone -- only heading 7010, which bundles jars with bottles, flasks and closures). Check `has_subcodes` and, if useful, set `include_children=true` to see whether a finer sub-code is actually a better match before committing to one code for a whole report. Returns `{mode, query, data}`: `data` is the typed validation or search response. A single-code validation also carries `subtree` when requested.
| Parameter | Type | Description |
|---|---|---|
| lang | string | Language for translated labels in the response; any other language is refused. |
| limit | integer | Max keyword-search results (ignored for direct code validation). |
| query * | string | Free-text keyword (e.g. 'glass jars') OR one or more CN codes, comma-separated (e.g. '7010' or '7010, 7013'), OR a single residual customs code (850440XX, 85SSS999, 85SSS). |
| include_children | boolean | When resolving a single direct code, also fetch its immediate CN subtree so finer-grained alternatives are visible in one call. |
{
"name": "resolve_product_code",
"title": "Resolve Product Code",
"description": "Resolve a free-text query or CN code(s) into validated customs\ncode(s) with descriptions -- the recommended first step before using\na code as `customs_code` in any other tool's `query`. Saves the search ->\nvalidate -> (optional) subtree round-trip: a bare keyword runs a search,\na single code (or comma-separated list) is validated and described\ndirectly.\n\nTip: Comext/CN nomenclature is frequently coarser than a colloquial\nproduct name (e.g. there is no code for \"glass jars\" alone -- only\nheading 7010, which bundles jars with bottles, flasks and closures).\nCheck `has_subcodes` and, if useful, set `include_children=true` to see\nwhether a finer sub-code is actually a better match before committing to\none code for a whole report.\n\nReturns `{mode, query, data}`: `data` is the typed validation or search\nresponse. A single-code validation also carries `subtree` when requested.",
"inputSchema": {
"type": "object",
"required": [
"query"
],
"properties": {
"lang": {
"enum": [
"bg",
"cs",
"da",
"de",
"el",
"en",
"es",
"et",
"fi",
"fr",
"ga",
"hr",
"hu",
"it",
"lt",
"lv",
"mt",
"nl",
"pl",
"pt",
"ro",
"sk",
"sl",
"sv"
],
"type": "string",
"default": "en",
"description": "Language for translated labels in the response; any other language is refused."
},
"limit": {
"type": "integer",
"default": 20,
"maximum": 50,
"minimum": 1,
"description": "Max keyword-search results (ignored for direct code validation)."
},
"query": {
"type": "string",
"description": "Free-text keyword (e.g. 'glass jars') OR one or more CN codes, comma-separated (e.g. '7010' or '7010, 7013'), OR a single residual customs code (850440XX, 85SSS999, 85SSS)."
},
"include_children": {
"type": "boolean",
"default": false,
"description": "When resolving a single direct code, also fetch its immediate CN subtree so finer-grained alternatives are visible in one call."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"$defs": {
"SubcodeRow": {
"type": "object",
"required": [
"basket_key",
"customs_code",
"label",
"segments"
],
"properties": {
"label": {
"type": "string",
"description": "The label of the row's (latest) definition, in the requested language when recorded."
},
"segments": {
"type": "array",
"items": {
"$ref": "#/$defs/SegmentPayload"
},
"description": "The definitions in force during the basket's window (empty for residual rows and for validation rows)."
},
"basket_key": {
"type": "string",
"description": "The key of this row's basket in the payload's per-sub-code maps: the sub-code (read over the parent piece's window), or the entered basket's label."
},
"customs_code": {
"type": "string",
"description": "The sub-code (or residual spelling)."
},
"untranslated": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"description": "True when the label fell back to English."
},
"residual_kind": {
"anyOf": [
{
"$ref": "#/$defs/WireEnum_ResidualKind_"
},
{
"type": "null"
}
],
"default": null,
"description": "For a residual row: 'xx' or 'letter'. Residual rows explain the gap between the sub-codes and the parent, and are pinned outside the top-N ranking."
},
"in_eurostat_api": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"description": "For a residual row: whether Eurostat's API serves the spelling as a PRODUCT value (XX codes only)."
},
"residual_reason": {
"anyOf": [
{
"$ref": "#/$defs/WireEnum_ResidualReason_"
},
{
"type": "null"
}
],
"default": null,
"description": "For a letter code or reason group: the reason letter (S, Y, E, I, …)."
},
"residual_spelling": {
"anyOf": [
{
"$ref": "#/$defs/WireEnum_ResidualSpelling_"
},
{
"type": "null"
}
],
"default": null,
"description": "For a residual row: 'xx', 'letter' or 'reason_group'."
}
},
"description": "One sub-code or residual customs code row, shared by breakdown views\n(``subcode-compare``, ``concentration-compare``, ``volatility``) and\nvalidation responses (``ValidateCustomsCodeResponse.residual_customs_codes``).",
"additionalProperties": false
},
"SubtreeNode": {
"type": "object",
"required": [
"customs_code",
"text",
"children"
],
"properties": {
"text": {
"type": "string",
"description": "The code's label, in the requested language."
},
"children": {
"type": "array",
"items": {
"$ref": "#/$defs/SubtreeNode"
},
"description": "The code's sub-codes."
},
"siblings": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/$defs/CodeLabel_CustomsCode_"
}
},
{
"type": "null"
}
],
"default": null,
"description": "For a catch-all ('other') node, the ordinary siblings it excludes."
},
"customs_code": {
"type": "string",
"description": "The node's customs code."
},
"is_catch_all": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"description": "True for a catch-all ('other') node."
},
"untranslated": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"description": "True when the label fell back to English."
}
},
"description": "One node of a CN sub-tree (recursive). The optional flags are sparse\non the wire: present when true (``siblings``: for catch-all nodes),\nabsent otherwise.",
"additionalProperties": false
},
"SearchResult": {
"type": "object",
"required": [
"code",
"label",
"path",
"via_prodcom"
],
"properties": {
"code": {
"type": "string",
"description": "The candidate's customs code."
},
"path": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The candidate's breadcrumb: its ancestor labels joined into one string; null alongside a null label."
},
"label": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The code's label, in the requested language; null for a mapped code the nomenclature does not list."
},
"via_prodcom": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The dotted PRODCOM form the match came through, for PRODCOM-notation queries."
}
},
"description": "One ranked search candidate.",
"additionalProperties": false
},
"SegmentWindow": {
"type": "object",
"required": [
"valid_from",
"valid_to"
],
"properties": {
"valid_to": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Last day of the window, ISO date; null while in force."
},
"valid_from": {
"type": "string",
"description": "First day of the window, ISO date."
}
},
"description": "The validity window of one customs-code segment (one definition).",
"additionalProperties": false
},
"MatchedProdcom": {
"type": "object",
"required": [
"prodcom_code",
"description"
],
"properties": {
"description": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "The code's label, when the nomenclature lists one."
},
"prodcom_code": {
"type": "string",
"examples": [
"23.99.14",
"24.10.T3.40"
],
"description": "The resolved PRODCOM code, in dotted form."
}
},
"description": "The PRODCOM code resolved from a dotted search query.",
"additionalProperties": false
},
"SearchResponse": {
"type": "object",
"required": [
"query",
"lang",
"source",
"matched_prodcom",
"results"
],
"properties": {
"lang": {
"enum": [
"bg",
"cs",
"da",
"de",
"el",
"en",
"es",
"et",
"fi",
"fr",
"ga",
"hr",
"hu",
"it",
"lt",
"lv",
"mt",
"nl",
"pl",
"pt",
"ro",
"sk",
"sl",
"sv"
],
"type": "string",
"description": "The label language used."
},
"query": {
"type": "string",
"description": "The query as received."
},
"source": {
"$ref": "#/$defs/WireEnum_SearchSource_",
"description": "The nomenclature searched ('cn', or 'prodcom' for PRODCOM-notation queries)."
},
"results": {
"type": "array",
"items": {
"$ref": "#/$defs/SearchResult"
},
"description": "The ranked candidates."
},
"matched_prodcom": {
"anyOf": [
{
"$ref": "#/$defs/MatchedProdcom"
},
{
"type": "null"
}
],
"default": null,
"description": "The resolved PRODCOM code descriptor, when the query used PRODCOM notation (present even when no CN code maps)."
}
},
"description": "GET /api/reference/search — ranked candidates; ``matched_prodcom`` is\nset when the query was a dotted PRODCOM notation.",
"additionalProperties": false
},
"SegmentPayload": {
"type": "object",
"required": [
"customs_code",
"valid_from",
"valid_to",
"kind",
"label",
"label_lang"
],
"properties": {
"kind": {
"$ref": "#/$defs/WireEnum_SegmentKind_",
"description": "The classification row's kind ('cn', 'residual_xx', 'letter_coded')."
},
"label": {
"type": "string",
"description": "The segment's own label (the definition in force during its window), in the requested language when available."
},
"valid_to": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Last day of the window, ISO date; null for a segment still in force."
},
"label_lang": {
"enum": [
"bg",
"cs",
"da",
"de",
"el",
"en",
"es",
"et",
"fi",
"fr",
"ga",
"hr",
"hu",
"it",
"lt",
"lv",
"mt",
"nl",
"pl",
"pt",
"ro",
"sk",
"sl",
"sv"
],
"type": "string",
"description": "The label's language (English when the requested one is not recorded for this definition)."
},
"valid_from": {
"type": "string",
"description": "First day of the segment's validity window, ISO date."
},
"customs_code": {
"type": "string",
"description": "The customs code the segment defines."
},
"untranslated": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"description": "True when the label fell back to English."
}
},
"description": "One recorded definition of a customs code: a fact of the\nclassification metadata, with its window and its own label.",
"additionalProperties": false
},
"DescriptionLevel": {
"type": "object",
"required": [
"customs_code",
"text"
],
"properties": {
"text": {
"type": "string",
"description": "The level's label, in the requested language."
},
"window": {
"anyOf": [
{
"$ref": "#/$defs/SegmentWindow"
},
{
"type": "null"
}
],
"default": null,
"description": "For a level read from a dated edition (a former definition, or one of its ancestors as that edition had them): the validity window of the definition shown. Absent for current-edition levels."
},
"segment": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"description": "True for a historical segment's own definition."
},
"residual": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"description": "True for the synthetic level of a residual spelling."
},
"siblings": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/$defs/CodeLabel_CustomsCode_"
}
},
{
"type": "null"
}
],
"default": null,
"description": "For a catch-all level, the ordinary siblings it excludes."
},
"customs_code": {
"type": "string",
"description": "The level's customs code."
},
"is_catch_all": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"description": "True for a catch-all ('other') level."
},
"untranslated": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"description": "True when the label fell back to English."
}
},
"description": "One level of a customs code's description hierarchy, chapter first\n(``ComextNomenclature.get_description_levels``, plus the synthetic\nlevels of residual spellings and the dated levels of former editions).\n\nThe optional flags are sparse on the wire: present when true, absent\notherwise (the shape of the nomenclature layer's raw dicts).",
"additionalProperties": false
},
"SearchResolution": {
"type": "object",
"required": [
"mode",
"query",
"data"
],
"properties": {
"data": {
"$ref": "#/$defs/SearchResponse"
},
"mode": {
"type": "string",
"const": "search",
"default": "search"
},
"query": {
"type": "string"
}
},
"description": "A nomenclature search response and the caller's original query.",
"additionalProperties": false
},
"ValidateResolution": {
"type": "object",
"required": [
"mode",
"query",
"data"
],
"properties": {
"data": {
"anyOf": [
{
"$ref": "#/$defs/ValidateCustomsCodeResponse"
},
{
"$ref": "#/$defs/ValidateCustomsCodeBatchResponse"
}
]
},
"mode": {
"type": "string",
"const": "validate",
"default": "validate"
},
"query": {
"type": "string"
},
"subtree": {
"anyOf": [
{
"$ref": "#/$defs/SubtreeNode"
},
{
"type": "null"
}
],
"default": null
}
},
"description": "A validated single/batch code response, optionally with its subtree.",
"additionalProperties": false
},
"RecordedLinkPayload": {
"type": "object",
"required": [
"customs_code",
"valid_from",
"valid_to",
"marker",
"match"
],
"properties": {
"match": {
"$ref": "#/$defs/WireEnum_LinkMatch_",
"description": "'matched' when the endpoint resolves to a recorded segment by its full window, 'unmatched' otherwise (never attached to a guessed segment)."
},
"marker": {
"type": "string",
"description": "Eurostat's relation marker, as recorded."
},
"valid_to": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "The other segment's window end, ISO date; null when open."
},
"valid_from": {
"type": "string",
"description": "The other segment's window start, ISO date."
},
"customs_code": {
"type": "string",
"description": "The other segment's customs code."
}
},
"description": "One recorded predecessor/successor edge of an exact segment.",
"additionalProperties": false
},
"SegmentHistoryEntry": {
"type": "object",
"required": [
"customs_code",
"valid_from",
"valid_to",
"kind",
"label",
"label_lang",
"recorded_links"
],
"properties": {
"kind": {
"$ref": "#/$defs/WireEnum_SegmentKind_",
"description": "The classification row's kind ('cn', 'residual_xx', 'letter_coded')."
},
"label": {
"type": "string",
"description": "The segment's own label (the definition in force during its window), in the requested language when available."
},
"valid_to": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Last day of the window, ISO date; null for a segment still in force."
},
"label_lang": {
"enum": [
"bg",
"cs",
"da",
"de",
"el",
"en",
"es",
"et",
"fi",
"fr",
"ga",
"hr",
"hu",
"it",
"lt",
"lv",
"mt",
"nl",
"pl",
"pt",
"ro",
"sk",
"sl",
"sv"
],
"type": "string",
"description": "The label's language (English when the requested one is not recorded for this definition)."
},
"valid_from": {
"type": "string",
"description": "First day of the segment's validity window, ISO date."
},
"customs_code": {
"type": "string",
"description": "The customs code the segment defines."
},
"untranslated": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"description": "True when the label fell back to English."
},
"recorded_links": {
"$ref": "#/$defs/RecordedLinksPayload",
"description": "Direct correspondence edges recorded for this exact definition. An empty list means no recorded direct link -- not that the code never changed (headings have no edges of their own)."
}
},
"description": "One recorded definition of a customs code with its direct recorded\nlinks (``SegmentHistoryPayload.segments``).",
"additionalProperties": false
},
"WireEnum_LinkMatch_": {
"enum": [
"matched",
"unmatched"
],
"type": "string"
},
"RecordedLinksPayload": {
"type": "object",
"required": [
"successors",
"predecessors"
],
"properties": {
"successors": {
"type": "array",
"items": {
"$ref": "#/$defs/RecordedLinkPayload"
},
"description": "Edges recorded from this segment."
},
"predecessors": {
"type": "array",
"items": {
"$ref": "#/$defs/RecordedLinkPayload"
},
"description": "Edges recorded into this segment."
}
},
"additionalProperties": false
},
"SegmentHistoryPayload": {
"type": "object",
"required": [
"customs_code",
"metadata_generation",
"segments"
],
"properties": {
"segments": {
"type": "array",
"items": {
"$ref": "#/$defs/SegmentHistoryEntry"
},
"description": "The definitions, oldest first."
},
"customs_code": {
"type": "string",
"description": "The base customs code."
},
"metadata_generation": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "The classification snapshot the history comes from."
}
},
"description": "Every recorded definition of one customs code (the CN classification\nfiles), independent of the current edition.",
"additionalProperties": false
},
"WireEnum_SegmentKind_": {
"enum": [
"cn",
"residual_xx",
"letter_coded",
"chapter_00",
"other"
],
"type": "string",
"description": "The ingest classification of one CN.txt identity."
},
"CodeLabel_CustomsCode_": {
"type": "object",
"required": [
"customs_code",
"text"
],
"properties": {
"text": {
"type": "string"
},
"customs_code": {
"type": "string",
"description": "A canonical customs code, TOTAL, or a supported residual spelling."
}
},
"additionalProperties": false
},
"WireEnum_ResidualKind_": {
"enum": [
"xx",
"letter"
],
"type": "string"
},
"WireEnum_SearchSource_": {
"enum": [
"cn",
"prodcom"
],
"type": "string",
"description": "The nomenclature a search ran over: the CN index, or the PRODCOM\nreverse mapping a dotted-notation query is answered from."
},
"ValidateCustomsCodeError": {
"type": "object",
"required": [
"customs_code",
"error"
],
"properties": {
"error": {
"$ref": "#/$defs/ValidateCustomsCodeErrorDetail",
"description": "Why it failed."
},
"customs_code": {
"type": "string",
"description": "The input item as typed."
}
},
"description": "One batch item's failure shape.",
"additionalProperties": false
},
"WireEnum_ResidualReason_": {
"enum": [
"A",
"B",
"C",
"E",
"F",
"I",
"M",
"P",
"R",
"S",
"T",
"V",
"W",
"Y"
],
"type": "string"
},
"ResolveProductCodeResponse": {
"oneOf": [
{
"$ref": "#/$defs/ValidateResolution"
},
{
"$ref": "#/$defs/SearchResolution"
}
],
"discriminator": {
"mapping": {
"search": "#/$defs/SearchResolution",
"validate": "#/$defs/ValidateResolution"
},
"propertyName": "mode"
}
},
"WireEnum_ResidualSpelling_": {
"enum": [
"xx",
"letter",
"reason_group"
],
"type": "string"
},
"ValidateCustomsCodeResponse": {
"type": "object",
"required": [
"customs_code",
"levels",
"customs_code_label",
"has_subcodes",
"interpreted_from",
"residual_kind",
"residual_spelling",
"residual_reason",
"in_eurostat_api",
"residual_customs_codes",
"in_current_cn",
"segment_history"
],
"properties": {
"levels": {
"type": "array",
"items": {
"$ref": "#/$defs/DescriptionLevel"
},
"description": "The code's CN description hierarchy (one entry per ancestor level), in the requested language."
},
"customs_code": {
"type": "string",
"description": "The validated, normalised customs code."
},
"has_subcodes": {
"type": "boolean",
"default": false,
"description": "Whether the code has children in the current CN edition."
},
"in_current_cn": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"description": "For digit codes: whether the current CN edition lists the code. False for a code known only from its recorded history (expired or abolished)."
},
"residual_kind": {
"anyOf": [
{
"$ref": "#/$defs/WireEnum_ResidualKind_"
},
{
"type": "null"
}
],
"default": null,
"description": "Residual class for residual spellings: 'xx' or 'letter' (reason groups report 'letter', the class of the codes they group)."
},
"in_eurostat_api": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"description": "For residual spellings: whether Eurostat's API serves the code as a PRODUCT value (XX codes only)."
},
"residual_reason": {
"anyOf": [
{
"$ref": "#/$defs/WireEnum_ResidualReason_"
},
{
"type": "null"
}
],
"default": null,
"description": "The reason letter of a letter code or reason group (S, Y, E, I, …)."
},
"segment_history": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/$defs/SegmentHistoryPayload"
}
},
{
"type": "null"
}
],
"default": null,
"description": "Every recorded definition of the code, with direct recorded links; null when no classification history is recorded for it. Use these windows to compose windowed pieces (the basket request form)."
},
"interpreted_from": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The raw input, when it was reformatted into customs_code (always the input as typed, never a note)."
},
"residual_spelling": {
"anyOf": [
{
"$ref": "#/$defs/WireEnum_ResidualSpelling_"
},
{
"type": "null"
}
],
"default": null,
"description": "The residual spelling's exact shape: 'xx', 'letter' or 'reason_group'."
},
"customs_code_label": {
"type": "string",
"default": "",
"description": "The code's display label (the deepest level's text)."
},
"residual_customs_codes": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/$defs/SubcodeRow"
}
},
{
"type": "null"
}
],
"default": null,
"description": "Residual customs codes related to this code: those directly under a digit code (its XX code plus one reason group per reason letter), or the letter codes inside a reason group."
}
},
"description": "GET /api/reference/validate-customs-code/{customs_code} — a validated\ncustoms code with its description hierarchy. Also one batch item's\nsuccess shape.",
"additionalProperties": false
},
"ValidateCustomsCodeErrorDetail": {
"type": "object",
"required": [
"status",
"detail"
],
"properties": {
"detail": {
"type": "string",
"description": "The error message."
},
"status": {
"type": "integer",
"description": "The HTTP status the single-code endpoint would have returned."
}
},
"additionalProperties": false
},
"ValidateCustomsCodeBatchResponse": {
"type": "object",
"required": [
"results"
],
"properties": {
"results": {
"type": "array",
"items": {
"anyOf": [
{
"$ref": "#/$defs/ValidateCustomsCodeResponse"
},
{
"$ref": "#/$defs/ValidateCustomsCodeError"
}
]
},
"description": "The results, one per input item, in input order."
}
},
"description": "The comma-separated batch path of validate-customs-code: each item a\nsuccess or an error.",
"additionalProperties": false
}
},
"required": [
"result"
],
"properties": {
"result": {
"$ref": "#/$defs/ResolveProductCodeResponse"
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Search for tools using natural language. Returns matching tool definitions ranked by relevance, in the same format as list_tools.
| Parameter | Type | Description |
|---|---|---|
| query * | string | Natural language query to search for tools |
{
"name": "search_tools",
"title": "Search Tools",
"description": "Search for tools using natural language.\n\nReturns matching tool definitions ranked by relevance,\nin the same format as list_tools.",
"inputSchema": {
"type": "object",
"required": [
"query"
],
"properties": {
"query": {
"type": "string",
"description": "Natural language query to search for tools"
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"required": [
"result"
],
"properties": {
"result": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
}
]
}
},
"x-fastmcp-wrap-result": true
}
}Call a tool by name with the given arguments. Use this to execute tools discovered via search_tools.
| Parameter | Type | Description |
|---|---|---|
| name * | string | The name of the tool to call |
| arguments | any | Arguments to pass to the tool |
{
"name": "call_tool",
"title": "Call Tool",
"description": "Call a tool by name with the given arguments.\n\nUse this to execute tools discovered via search_tools.",
"inputSchema": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "The name of the tool to call"
},
"arguments": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
],
"default": null,
"description": "Arguments to pass to the tool"
}
},
"additionalProperties": false
}
}> EU Trade Explorer MCP bridge for Eurostat Comext customs trade and PRODCOM industrial production. ## Access Tool calls and resource reads use OAuth 2.1 or a personal API key with a free account. Discovery and listings are public. See [chatbots and API access](https://tradedashboard.eu/faq-en.html#chatbots) and [data sources](https://tradedashboard.eu/about-en.html). ## Tool discovery The initial listing pins the common product-resolution, coverage, overview and documentation tools. For every other analysis, call `search_tools` with a natural-language description. It returns at most three matching tools with their complete input schemas. Execute a match through `call_tool` with `name` set to the returned tool name and `arguments` set to that tool's keyword arguments. Existing clients may still call every canonical tool name directly. Search results omit bulky output schemas and carry a `contractUrl` instead. The [complete MCP contract](https://mcp.tradedashboard.eu/contract.json) preserves every input and output schema. ## Tool results Typed tools return structured content in a stable `{"result": ...}` envelope. Report-section tools put the section there; `get_full_report` puts the shared query and all five sections there. ## Documentation Call `get_documentation` or read `eu-trade://docs/<topic>` for a short guide and website links. Topics: `query-model`, `customs-codes`, `prodcom`, `methodology`, `reporting`.
Names, descriptions and schemas were written by the server and are shown as data.