Skip to main content
Glama

Get Eurostat Dataset Info

eurostat_get_dataset_info
Read-onlyIdempotent

Fetch a Eurostat dataset's metadata: dimensions with sample values, time range, observation count and last update. Call it before eurostat_query_dataset or eurostat_download_dataset to learn the dimension codes their filters take; the download rejects a filter naming a dimension absent here. Up to 10 sample values per dimension; eurostat_get_dimension_values lists the rest. A DS-* code (detailed trade and PRODCOM, any case) is read from the Comext host, which reports no period coverage or observation count; the first call on a large Comext collection downloads its full structure and takes longer, and repeat calls within the hour reuse it.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "dataset_code": "<dataset_code>"
    },
    "name": "eurostat_get_dataset_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataset_codeYesDataset code (e.g., "nama_10_gdp", or "DS-045409" for a Comext collection), from eurostat_search_datasets or eurostat_browse_themes.

Output Schema

NameRequiredDescriptionDefault
codeNoDataset code as provided.
errorNoPresent when the call failed. Absent on success.
labelNoDataset title.
obsCountNoObservations across the whole dataset; omitted when not reported, which means unknown, not zero.
timeRangeNoDataset coverage. An omitted bound is unknown, not empty.
dimensionsNoThe dataset's dimensions.
lastUpdatedNoISO 8601 timestamp of the last data update; omitted when not reported.
metadataUrlNoESMS metadata page URL; omitted when Eurostat gives none.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed16 schema fields changed
    • changedInput schema / properties / dataset_code / description
      Previous value: -"Dataset code (e.g., \"nama_10_gdp\", or \"DS-045409\" for a Comext collection). Use eurostat_search_datasets or eurostat_browse_themes to find codes."New value: +"Dataset code (e.g., \"nama_10_gdp\", or \"DS-045409\" for a Comext collection), from eurostat_search_datasets or eurostat_browse_themes."
    • changedOutput schema / properties / dimensions / description
      Previous value: -"All dimensions of the dataset with their valid codes and labels."New value: +"The dataset's dimensions."
    • changedOutput schema / properties / dimensions / items / properties / code / description
      Previous value: -"Dimension code (e.g., \"unit\", \"geo\", \"na_item\"). Use these as filter keys in eurostat_query_dataset and eurostat_download_dataset."New value: +"Dimension code (e.g., \"geo\"), the filter key in eurostat_query_dataset and eurostat_download_dataset."
    • changedOutput schema / properties / dimensions / items / properties / label / description
      Previous value: -"Human-readable dimension name (e.g., \"Unit of measure\")."New value: +"Dimension name (e.g., \"Unit of measure\")."
    • changedOutput schema / properties / dimensions / items / properties / sampleValues / description
      Previous value: -"First 10 dataset-available values for orientation. Use eurostat_get_dimension_values for the full constrained list. Omitted alongside valuesCount when Eurostat does not supply a measurable value set."New value: +"The first 10 values; eurostat_get_dimension_values lists all. Omitted alongside valuesCount."
    • changedOutput schema / properties / dimensions / items / properties / sampleValues / items / properties / code / description
      Previous value: -"Dimension value code."New value: +"Value code."
    • changedOutput schema / properties / dimensions / items / properties / sampleValues / items / properties / label / description
      Previous value: -"Human-readable label for this value."New value: +"Value label."
    • changedOutput schema / properties / dimensions / items / properties / valuesCount / description
      Previous value: -"Number of dataset-available values in this dimension, taken from the dataset content constraint. For \"time\" this is the full period count. Omitted only when Eurostat does not supply a measurable value set."New value: +"Values the dataset carries in this dimension; for \"time\", its period count. Omitted when Eurostat supplies no measurable value set."
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `not_found`: The dataset code does not exist or is not available for dissemination. `upstream_fault`: Eurostat returned a dataset structure or content constraint this server cannot read — malformed, truncated, not XML, or missing the requested dataset's dataflow; the structure endpoint answered HTTP 501, which is not retried; or it answered another HTTP 5xx or could not be reached on every retry, which the error marks retryable. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `not_found`: The dataset code does not exist or is not disseminated. `upstream_fault`: Eurostat returned a dataset structure this server cannot read, or refused the structure read, which is not retried; marked retryable when the structure endpoint failed or could not be reached on every retry. Other values are possible when a failure originates below the handler."
    • changedOutput schema / properties / label / description
      Previous value: -"Human-readable dataset title."New value: +"Dataset title."
    • changedOutput schema / properties / lastUpdated / description
      Previous value: -"ISO 8601 timestamp of the most recent data update. Omitted when Eurostat does not report it."New value: +"ISO 8601 timestamp of the last data update; omitted when not reported."
    • changedOutput schema / properties / metadataUrl / description
      Previous value: -"URL to the ESMS HTML metadata page for this dataset. Omitted when not provided by Eurostat."New value: +"ESMS metadata page URL; omitted when Eurostat gives none."
    • changedOutput schema / properties / obsCount / description
      Previous value: -"Total number of observations in the full dataset (all periods). Omitted when Eurostat does not report it — an omitted count is unknown, not zero."New value: +"Observations across the whole dataset; omitted when not reported, which means unknown, not zero."
    • changedOutput schema / properties / timeRange / description
      Previous value: -"Overall data coverage period for this dataset. Each bound is omitted when Eurostat does not report it — an omitted bound is unknown, not empty."New value: +"Dataset coverage. An omitted bound is unknown, not empty."
    • changedOutput schema / properties / timeRange / properties / end / description
      Previous value: -"Most recent available period (e.g., \"2024\"). Omitted when Eurostat does not report it."New value: +"Latest period (e.g., \"2024\"); omitted when not reported."
    • changedOutput schema / properties / timeRange / properties / start / description
      Previous value: -"Earliest available period (e.g., \"1975\"). Omitted when Eurostat does not report it."New value: +"Earliest period (e.g., \"1975\"); omitted when not reported."
  2. Changed1 schema field changed
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `not_found`: The dataset code does not exist or is not available for dissemination. `upstream_fault`: Eurostat returned a dataset structure or content constraint this server cannot read — malformed, truncated, not XML, or missing the requested dataset's dataflow — or the structure endpoint answered HTTP 5xx or could not be reached on every retry, which the error marks retryable. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `not_found`: The dataset code does not exist or is not available for dissemination. `upstream_fault`: Eurostat returned a dataset structure or content constraint this server cannot read — malformed, truncated, not XML, or missing the requested dataset's dataflow; the structure endpoint answered HTTP 501, which is not retried; or it answered another HTTP 5xx or could not be reached on every retry, which the error marks retryable. Other values are possible when a failure originates below the handler."
  3. Changed1 schema field changed
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `not_found`: The dataset code does not exist or is not available for dissemination. `upstream_fault`: Eurostat returned a dataset structure or content constraint this server cannot read: malformed, truncated, not XML, or missing the requested dataset's dataflow. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `not_found`: The dataset code does not exist or is not available for dissemination. `upstream_fault`: Eurostat returned a dataset structure or content constraint this server cannot read — malformed, truncated, not XML, or missing the requested dataset's dataflow — or the structure endpoint answered HTTP 5xx or could not be reached on every retry, which the error marks retryable. Other values are possible when a failure originates below the handler."
  4. Changed3 schema fields changed
    • changedInput schema / properties / dataset_code / description
      Previous value: -"Dataset code (e.g., \"nama_10_gdp\"). Use eurostat_search_datasets or eurostat_browse_themes to find codes."New value: +"Dataset code (e.g., \"nama_10_gdp\", or \"DS-045409\" for a Comext collection). Use eurostat_search_datasets or eurostat_browse_themes to find codes."
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `not_found`: The dataset code does not exist or is not available for dissemination. `async_response`: Eurostat returned an async response (query too large for the API). Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `not_found`: The dataset code does not exist or is not available for dissemination. `upstream_fault`: Eurostat returned a dataset structure or content constraint this server cannot read: malformed, truncated, not XML, or missing the requested dataset's dataflow. Other values are possible when a failure originates below the handler."
    • changedOutput schema / properties / error / properties / data / properties / reason / examples
      Previous value: -[
      -  "not_found",
      -  "async_response"
      -]New value: +[
      +  "not_found",
      +  "upstream_fault"
      +]
  5. Changed2 schema fields changed
    • changedOutput schema / properties / dimensions / items / properties / sampleValues / description
      Previous value: -"First 10 dimension values for orientation. Use eurostat_get_dimension_values for the full list. Omitted alongside valuesCount when the value set could not be measured."New value: +"First 10 dataset-available values for orientation. Use eurostat_get_dimension_values for the full constrained list. Omitted alongside valuesCount when Eurostat does not supply a measurable value set."
    • changedOutput schema / properties / dimensions / items / properties / valuesCount / description
      Previous value: -"Number of distinct values in this dimension. For \"time\" this is the dataset's full period count; every other dimension is counted from the most recent period. Omitted when the value set could not be measured — only \"time\" can be, and an omitted count is unknown, not one. Call eurostat_get_dimension_values for that dimension to obtain it."New value: +"Number of dataset-available values in this dimension, taken from the dataset content constraint. For \"time\" this is the full period count. Omitted only when Eurostat does not supply a measurable value set."
  6. Changed6 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / additionalProperties
      Added value: +false
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedOutput schema / anyOf
      Added value: +[
      +  {
      +    "not": {
      +      "required": [
      +        "error"
      +      ]
      +    },
      +    "required": [
      +      "code",
      +      "label",
      +      "dimensions",
      +      "timeRange"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "error"
      +    ]
      +  }
      +]
    • addedOutput schema / properties / error
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Present when the call failed. Absent on success.",
      +  "properties": {
      +    "code": {
      +      "description": "JSON-RPC error code for this failure.",
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "data": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "reason": {
      +          "description": "Machine-readable failure mode. Declared by this tool: `not_found`: The dataset code does not exist or is not available for dissemination. `async_response`: Eurostat returned an async response (query too large for the API). Other values are possible when a failure originates below the handler.",
      +          "examples": [
      +            "not_found",
      +            "async_response"
      +          ],
      +          "type": "string"
      +        },
      +        "recovery": {
      +          "additionalProperties": {},
      +          "description": "Actionable next step for the caller.",
      +          "properties": {
      +            "hint": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "hint"
      +          ],
      +          "type": "object"
      +        },
      +        "retryable": {
      +          "description": "Whether retrying may succeed.",
      +          "type": "boolean"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "message": {
      +      "description": "Human-readable description of what went wrong.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "code",
      +    "message"
      +  ],
      +  "type": "object"
      +}
    • removedOutput schema / required
      Removed value: -[
      -  "code",
      -  "label",
      -  "dimensions",
      -  "timeRange"
      -]
  7. Changed1 schema field changed
    • changedOutput schema / properties / dimensions / items / properties / code / description
      Previous value: -"Dimension code (e.g., \"unit\", \"geo\", \"na_item\"). Use these as filter keys in eurostat_query_dataset."New value: +"Dimension code (e.g., \"unit\", \"geo\", \"na_item\"). Use these as filter keys in eurostat_query_dataset and eurostat_download_dataset."
  8. Changed3 schema fields changed
    • changedOutput schema / properties / dimensions / items / properties / sampleValues / description
      Previous value: -"First 10 dimension values for orientation. Use eurostat_get_dimension_values for the full list."New value: +"First 10 dimension values for orientation. Use eurostat_get_dimension_values for the full list. Omitted alongside valuesCount when the value set could not be measured."
    • changedOutput schema / properties / dimensions / items / properties / valuesCount / description
      Previous value: -"Number of distinct values in this dimension. For \"time\" this is the dataset's full period count; every other dimension is counted from the most recent period."New value: +"Number of distinct values in this dimension. For \"time\" this is the dataset's full period count; every other dimension is counted from the most recent period. Omitted when the value set could not be measured — only \"time\" can be, and an omitted count is unknown, not one. Call eurostat_get_dimension_values for that dimension to obtain it."
    • changedOutput schema / properties / dimensions / items / required
      Previous value: -[
      -  "code",
      -  "label",
      -  "valuesCount",
      -  "sampleValues"
      -]New value: +[
      +  "code",
      +  "label"
      +]
  9. Changed8 schema fields changed
    • changedOutput schema / properties / dimensions / items / properties / valuesCount / description
      Previous value: -"Number of distinct values in this dimension for the most recent period."New value: +"Number of distinct values in this dimension. For \"time\" this is the dataset's full period count; every other dimension is counted from the most recent period."
    • changedOutput schema / properties / lastUpdated / description
      Previous value: -"ISO 8601 timestamp of the most recent data update."New value: +"ISO 8601 timestamp of the most recent data update. Omitted when Eurostat does not report it."
    • changedOutput schema / properties / obsCount / description
      Previous value: -"Total number of observations in the full dataset (all periods)."New value: +"Total number of observations in the full dataset (all periods). Omitted when Eurostat does not report it — an omitted count is unknown, not zero."
    • changedOutput schema / properties / timeRange / description
      Previous value: -"Overall data coverage period for this dataset."New value: +"Overall data coverage period for this dataset. Each bound is omitted when Eurostat does not report it — an omitted bound is unknown, not empty."
    • changedOutput schema / properties / timeRange / properties / end / description
      Previous value: -"Most recent available period (e.g., \"2024\")."New value: +"Most recent available period (e.g., \"2024\"). Omitted when Eurostat does not report it."
    • changedOutput schema / properties / timeRange / properties / start / description
      Previous value: -"Earliest available period (e.g., \"1975\")."New value: +"Earliest available period (e.g., \"1975\"). Omitted when Eurostat does not report it."
    • removedOutput schema / properties / timeRange / required
      Removed value: -[
      -  "start",
      -  "end"
      -]
    • changedOutput schema / required
      Previous value: -[
      -  "code",
      -  "label",
      -  "dimensions",
      -  "timeRange",
      -  "obsCount",
      -  "lastUpdated"
      -]New value: +[
      +  "code",
      +  "label",
      +  "dimensions",
      +  "timeRange"
      +]
  10. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Well beyond the annotations: it discloses that a DS-* code is routed to a different Comext host, that host reports no period coverage or observation count, the first call on a large collection is slow because it downloads the full structure, and repeat calls within the hour reuse the cached structure. The only gap is that the 10-sample cap is stated as a fact but its effect on filter construction is left implicit.

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 and the call-order rule, then the caveats. Every sentence carries information, but the final Comext sentence packs host, missing fields, latency and caching into one long clause chain and could be split for faster scanning.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need no prose, and the annotations already establish the read-only, idempotent safety profile. What remains — prerequisites, the dimension-code dependency, the truncated sample values, and the Comext exception with its latency and caching — is all covered.

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% and the single parameter is fully documented, so the baseline is 3. The description adds real meaning on top: the DS-* prefix (detailed trade and PRODCOM), case-insensitivity, and that codes come from eurostat_search_datasets or eurostat_browse_themes, all of which change how an agent supplies the value.

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 a Eurostat dataset's metadata") and enumerates exactly what comes back: dimensions with sample values, time range, observation count, last update. It also distinguishes itself from eurostat_get_dimension_values, which covers the values this tool truncates to 10, so an agent can tell them apart without opening either schema.

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

Usage Guidelines5/5

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

Gives an explicit ordering rule ("Call it before eurostat_query_dataset or eurostat_download_dataset") and a concrete failure mode that motivates it ("the download rejects a filter naming a dimension absent here"). It also names the alternative for the truncated sample values and scopes the Comext case, leaving nothing to inference.

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.