Skip to main content
Glama

Eurostat Get Dataset

eurostat_get_dataset
Read-onlyIdempotent

Fetch statistical data from a Eurostat dataset by dataset code. Optionally filter by country (geo) and time period. Example: get_dataset({ dataset_code: "nama_10_gdp", geo: "DE", time: "2023" }). Common dataset codes: "nama_10_gdp" (GDP), "prc_hicp_minr" (HICP inflation, monthly indices and rates of change; filter unit "RCH_A" for the annual rate, coicop18 "TOTAL" for all items), "une_rt_m" (unemployment). Returns decoded rows in "observations" (newest first) with the dataset last-update date; a dataset Eurostat has stopped updating is reported as stale, never as an empty success. Codes are lowercase, underscore-separated and must come from search_datasets or list_datasets, a guessed or descriptive code is not a Eurostat code.

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": {
      "geo": "DE",
      "time": "2023",
      "dataset_code": "nama_10_gdp"
    },
    "name": "eurostat_get_dataset"
  }
}

Input Schema

NameRequiredDescriptionDefault
geoNoCountry/region code filter, e.g. "DE" (Germany), "FR" (France), "EU27_2020" (EU aggregate)
timeNoTime period filter, e.g. "2023", "2023-01" (Jan 2023), "2023-Q1" (Q1 2023)
sinceNoEarliest period to return, e.g. "2026-07". Use instead of time to get a recent window.
filtersNoExtra dimension filters as {dimension: code}, e.g. {"unit":"RCH_A","coicop18":"TOTAL"}. Dimension names are listed in the response "dimensions".
dataset_codeYesEurostat dataset code from search_datasets or list_datasets, e.g. "nama_10_gdp", "prc_hicp_minr", "une_rt_m". Lowercase with underscores, not a title or a category word.

Output Schema

NameRequiredDescriptionDefault
labelYesHuman-readable label for the dataset
valuesYesData values indexed by dimension combination
datasetYesThe dataset code requested
updatedYesLast update timestamp of the dataset
dimensionsYesDataset dimensions with labels and category mappings
value_countYesNumber of data values in the dataset

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "dataset_code": "nama_10_gdp",
      -    "geo": "DE",
      -    "time": "2023"
      -  },
      -  {
      -    "dataset_code": "prc_hicp_manr",
      -    "geo": "EU27_2020",
      -    "time": "2023-06"
      -  }
      -]New value: +[
      +  {
      +    "dataset_code": "nama_10_gdp",
      +    "geo": "DE",
      +    "time": "2023"
      +  },
      +  {
      +    "dataset_code": "prc_hicp_minr",
      +    "filters": {
      +      "coicop18": "TOTAL",
      +      "unit": "RCH_A"
      +    },
      +    "geo": "EA",
      +    "since": "2026-07"
      +  }
      +]
    • changedInput schema / properties / dataset_code / description
      Previous value: -"Eurostat dataset code from search_datasets or list_datasets, e.g. \"nama_10_gdp\", \"prc_hicp_manr\", \"une_rt_m\". Lowercase with underscores, not a title or a category word."New value: +"Eurostat dataset code from search_datasets or list_datasets, e.g. \"nama_10_gdp\", \"prc_hicp_minr\", \"une_rt_m\". Lowercase with underscores, not a title or a category word."
    • addedInput schema / properties / filters
      Added value: +{
      +  "description": "Extra dimension filters as {dimension: code}, e.g. {\"unit\":\"RCH_A\",\"coicop18\":\"TOTAL\"}. Dimension names are listed in the response \"dimensions\".",
      +  "type": "object"
      +}
    • addedInput schema / properties / since
      Added value: +{
      +  "description": "Earliest period to return, e.g. \"2026-07\". Use instead of time to get a recent window.",
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / dataset_code / description
      Previous value: -"Eurostat dataset code from search_datasets or list_datasets, e.g. \"nama_10_gdp\", \"prc_hicp_manr\", \"une_rt_m\". Lowercase with underscores — not a title or a category word."New value: +"Eurostat dataset code from search_datasets or list_datasets, e.g. \"nama_10_gdp\", \"prc_hicp_manr\", \"une_rt_m\". Lowercase with underscores, not a title or a category word."
  3. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world, so the safety profile is covered. The description still adds substantive behavior beyond them: results land in "observations" newest-first, the dataset last-update date is included, and a discontinued dataset is reported as stale rather than as an empty success — a real failure-mode disclosure an agent could not infer.

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?

Front-loaded with purpose, then example, then code cheat-sheet — a sensible order, and the dataset-code hints are dense but load-bearing. The code-validation rule is stated twice (opening and closing), which is mild redundancy against an otherwise tight description.

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 five parameters, a nested `filters` object, full schema coverage, an output schema, and rich annotations, the description carries what it must: return shape, ordering, staleness semantics, and code provenance. It does not mention `since` or `filters` by name, but both are fully specified in the schema, so the gap is minor.

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%, so the baseline would be 3, but the description adds meaning on top: it shows filter usage in context (unit "RCH_A", coicop18 "TOTAL" for prc_hicp_minr) and reinforces the lowercase/underscore code constraint. The `since`-vs-`time` tradeoff is left entirely to the schema, keeping this below 5.

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 a specific verb and resource ("Fetch statistical data from a Eurostat dataset by dataset code") and bounds scope to a single dataset per call. It is clearly separable from the sibling discovery tools (search_datasets / list_datasets), which it names as the source of valid codes.

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 explicit preconditions — codes must come from search_datasets or list_datasets, and guessed or descriptive codes are not valid — which is genuine when-to-use guidance. It also routes filtering decisions via the geo/time example and per-dataset filter hints. It stops short of an explicit exclusion case (e.g. when to prefer a different fetch path), so a 4 rather than 5.

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.