Skip to main content
Glama

Get Partner Detail

get_partner_detail

Per-partner import/export breakdown. For each flow, the top-N trading partners ranked both by quantity and by value (so you can compare volume-based vs. value-based rankings), each with its own quantity, value and price time series, plus an optional 'Other' bucket.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesThe product/reporter/partner-set/period/frequency slice to query -- the same request body every tradedashboard.eu analytical endpoint takes. See its own field descriptions (product, reporter, partner_set, period_start, period_end, frequency, n_top, ...) for details; only `product` is required, everything else has a sensible default.
compactNoIf 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.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • removedInput schema / $defs
      Removed value: -{
      -  "DashboardQuery": {
      -    "description": "Shared request body for every analytical endpoint.\n\nOne product (or a list of products to aggregate), one reporter (or group of\nreporters), a partner set, a period window and a frequency fully describe a\nslice of Eurostat Comext/PRODCOM data. Individual endpoints read extra,\nendpoint-specific options from the query string (e.g. ``entity_level``,\n``flow``, ``partner``) rather than from this body.",
      -    "properties": {
      -      "frequency": {
      -        "default": "quarter",
      -        "description": "Resampling frequency for the series: 'month', 'quarter' or 'year'.",
      -        "title": "Frequency",
      -        "type": "string"
      -      },
      -      "include_other": {
      -        "default": true,
      -        "description": "Bundle entities outside the top-N into a single 'Other' bucket.",
      -        "title": "Include Other",
      -        "type": "boolean"
      -      },
      -      "lang": {
      -        "default": "en",
      -        "description": "Language for translated labels in the response (en, de, fr, es, it, ro).",
      -        "title": "Lang",
      -        "type": "string"
      -      },
      -      "midpoint": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Split point 'YYYY-MM' for the Pattern Shifts tab: the window is cut in two here and the before/after change per entity is reported. Defaults to the middle of the period when omitted.",
      -        "title": "Midpoint"
      -      },
      -      "n_top": {
      -        "default": 7,
      -        "description": "Number of top entities (by volume/value) to break out individually in charts.",
      -        "title": "N Top",
      -        "type": "integer"
      -      },
      -      "partner_set": {
      -        "default": "non-EU countries",
      -        "description": "Named partner preset, e.g. 'non-EU countries', 'EU countries', 'all countries', or a predefined partner group.",
      -        "title": "Partner Set",
      -        "type": "string"
      -      },
      -      "partners": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Explicit partner-country list that overrides 'partner_set' when present.",
      -        "title": "Partners"
      -      },
      -      "period_end": {
      -        "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.",
      -        "title": "Period End",
      -        "type": "string"
      -      },
      -      "period_start": {
      -        "default": "2015-01",
      -        "description": "Inclusive start of the analysis window, ISO month 'YYYY-MM'.",
      -        "title": "Period Start",
      -        "type": "string"
      -      },
      -      "prodcom_code": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Specific PRODCOM dataset code to pin for the Net Import Reliance and Trade Intensity tabs, when a single CN code maps to several. Ignored elsewhere.",
      -        "title": "Prodcom Code"
      -      },
      -      "product": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          }
      -        ],
      -        "description": "Combined Nomenclature customs code(s), 2–8 digits, or the literal 'TOTAL' meta-aggregate (all products combined). Pass a list to aggregate several codes: their volumes are summed and prices volume-weighted across every tab — except the Cross-section views, which keep each code separate.",
      -        "examples": [
      -          "3801",
      -          [
      -            "0901",
      -            "0902"
      -          ],
      -          "TOTAL"
      -        ],
      -        "title": "Product"
      -      },
      -      "remove_outliers": {
      -        "default": true,
      -        "description": "Drop extreme unit-price outliers before computing weighted-average prices.",
      -        "title": "Remove Outliers",
      -        "type": "boolean"
      -      },
      -      "reporter": {
      -        "default": "European Union",
      -        "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.",
      -        "title": "Reporter",
      -        "type": "string"
      -      },
      -      "reporter_members": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Explicit member countries for a custom reporter group. Each entry must be an EU member state, EU candidate country, or Northern Ireland. When more than one member is supplied the frame is aggregated into a synthetic group named after 'reporter'.",
      -        "title": "Reporter Members"
      -      }
      -    },
      -    "required": [
      -      "product"
      -    ],
      -    "title": "DashboardQuery",
      -    "type": "object"
      -  }
      -}
    • addedInput schema / additionalProperties
      Added value: +false
    • removedInput schema / properties / compact / title
      Removed value: -"Compact"
    • removedInput schema / properties / query / $ref
      Removed value: -"#/$defs/DashboardQuery"
    • addedInput schema / properties / query / properties
      Added value: +{
      +  "frequency": {
      +    "default": "quarter",
      +    "description": "Resampling frequency for the series: 'month', 'quarter' or 'year'.",
      +    "type": "string"
      +  },
      +  "include_other": {
      +    "default": true,
      +    "description": "Bundle entities outside the top-N into a single 'Other' bucket.",
      +    "type": "boolean"
      +  },
      +  "lang": {
      +    "default": "en",
      +    "description": "Language for translated labels in the response (en, de, fr, es, it, ro).",
      +    "type": "string"
      +  },
      +  "midpoint": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null,
      +    "description": "Split point 'YYYY-MM' for the Pattern Shifts tab: the window is cut in two here and the before/after change per entity is reported. Defaults to the middle of the period when omitted."
      +  },
      +  "n_top": {
      +    "default": 7,
      +    "description": "Number of top entities (by volume/value) to break out individually in charts.",
      +    "type": "integer"
      +  },
      +  "partner_set": {
      +    "default": "non-EU countries",
      +    "description": "Named partner preset, e.g. 'non-EU countries', 'EU countries', 'all countries', or a predefined partner group.",
      +    "type": "string"
      +  },
      +  "partners": {
      +    "anyOf": [
      +      {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null,
      +    "description": "Explicit partner-country list that overrides 'partner_set' when present."
      +  },
      +  "period_end": {
      +    "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.",
      +    "type": "string"
      +  },
      +  "period_start": {
      +    "default": "2015-01",
      +    "description": "Inclusive start of the analysis window, ISO month 'YYYY-MM'.",
      +    "type": "string"
      +  },
      +  "prodcom_code": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null,
      +    "description": "Specific PRODCOM dataset code to pin for the Net Import Reliance and Trade Intensity tabs, when a single CN code maps to several. Ignored elsewhere."
      +  },
      +  "product": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      }
      +    ],
      +    "description": "Combined Nomenclature customs code(s), 2–8 digits, or the literal 'TOTAL' meta-aggregate (all products combined). Pass a list to aggregate several codes: their volumes are summed and prices volume-weighted across every tab — except the Cross-section views, which keep each code separate.",
      +    "examples": [
      +      "3801",
      +      [
      +        "0901",
      +        "0902"
      +      ],
      +      "TOTAL"
      +    ]
      +  },
      +  "remove_outliers": {
      +    "default": true,
      +    "description": "Drop extreme unit-price outliers before computing weighted-average prices.",
      +    "type": "boolean"
      +  },
      +  "reporter": {
      +    "default": "European Union",
      +    "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.",
      +    "type": "string"
      +  },
      +  "reporter_members": {
      +    "anyOf": [
      +      {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null,
      +    "description": "Explicit member countries for a custom reporter group. Each entry must be an EU member state, EU candidate country, or Northern Ireland. When more than one member is supplied the frame is aggregated into a synthetic group named after 'reporter'."
      +  }
      +}
    • addedInput schema / properties / query / required
      Added value: +[
      +  "product"
      +]
    • addedInput schema / properties / query / type
      Added value: +"object"
    • removedInput schema / title
      Removed value: -"get_partner_detailArguments"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "type": "object"
      +}
  2. First observed

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the transparency burden. It does disclose that rankings are provided by both quantity and value, and that an optional 'Other' bucket exists. However, it does not mention any limitations, data handling specifics, or what happens with missing data or how the top-N is determined (though n_top parameter is in the schema). It is adequate but not rich.

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 a single sentence that is information-dense and well-organized, starting with the core purpose and then elaborating on specifics. It avoids fluff but could benefit from a more structured breakdown of key behaviors. Still, it is appropriately sized.

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?

The tool is complex with many parameters and an output schema, but the description only provides a high-level overview. It does not mention the various tabs or cross-section views, which are likely important for distinguishing results. The input schema carries much of the detail, but the description alone leaves gaps for a complete understanding.

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?

Input schema covers 100% of parameters with detailed descriptions, so the baseline is 3. The tool description adds minimal extra semantic value by mentioning 'top-N' and 'Other' bucket, which map to 'n_top' and 'include_other' parameters, but it does not explain any parameter behavior beyond what the schema already states.

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 clearly states it provides a per-partner import/export breakdown with top-N rankings and time series, which distinguishes it from sibling tools dealing with aggregates or other breakdowns. It uses a specific verb-like noun phrase and lists concrete output elements. However, it does not explicitly differentiate itself from similar tools like get_top_entities or get_reporter_detail.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives no guidance on when to use this tool versus alternatives. It does not mention any exclusions, prerequisites, or comparisons with sibling tools. The only implicit clue is 'Per-partner' which hints at its specific focus, but this is not explicit usage 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