Skip to main content
Glama

Browse Eurostat Theme Hierarchy

eurostat_browse_themes
Read-onlyIdempotent

Navigate the Eurostat theme tree, for discovery when you know the domain but not the dataset code; eurostat_search_datasets finds datasets by keyword. Without theme_code it returns the top-level theme folders, with one that folder's immediate subfolders and datasets. The tree is the dissemination table of contents plus the Comext host's DS-* collections: detailed trade under ext_go_detail (in ext_go) and PRODCOM under prom (in icts). A collection on neither, such as the legacy PRODCOM DS-056120, is not disseminated and appears nowhere in the tree.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "eurostat_browse_themes"
  }
}

Input Schema

NameRequiredDescriptionDefault
theme_codeNoFolder code to expand (e.g., "economy", "reg"), matched exactly, then ignoring case. Omit for the top-level folders.

Output Schema

NameRequiredDescriptionDefault
errorNoPresent when the call failed. Absent on success.
itemsNoImmediate children of theme_code, or the root themes without it.
noticeNoNames any part of the catalogue missing from this listing and what to do about it.
nextStepNoSuggested next call, when one is clear.
itemCountNoNumber of items at this level.
themeCodeNoFolder code browsed; omitted at the root.
parentPathNoBreadcrumb from the root to theme_code; empty at the root.
otherPlacementsNoBreadcrumbs of other branches filing this same folder code. items come from the first branch the catalogue lists, which never has fewer children but can list different ones; reach the others by browsing down from the root. Omitted for a code with one placement.
catalogueLoadedAtNoWhen the catalogue that answered was loaded (ISO 8601); present only when a failed refresh left that older copy in service.
comextListMissingNoTrue on a browse of ext_go or icts when the Comext dataflow list could not be loaded, so its DS-* collection folder is not listed. Omitted otherwise.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed20 schema fields changed
    • changedInput schema / properties / theme_code / description
      Previous value: -"Folder code to expand (e.g., \"economy\", \"reg\"). Exact codes take precedence, then case-insensitive matching applies. Omit to list the top-level theme folders."New value: +"Folder code to expand (e.g., \"economy\", \"reg\"), matched exactly, then ignoring case. Omit for the top-level folders."
    • changedOutput schema / properties / catalogueLoadedAt / description
      Previous value: -"When the catalogue that answered was loaded (ISO 8601). Present only when a refresh failed and that older copy is still in service; omitted otherwise."New value: +"When the catalogue that answered was loaded (ISO 8601); present only when a failed refresh left that older copy in service."
    • changedOutput schema / properties / comextListMissing / description
      Previous value: -"True on a browse of ext_go or icts when the Comext dataflow list could not be loaded, so the DS-* collection folder filed there is not listed. Omitted otherwise."New value: +"True on a browse of ext_go or icts when the Comext dataflow list could not be loaded, so its DS-* collection folder is not listed. Omitted otherwise."
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `not_found`: The provided theme_code does not exist in the TOC — or is a Comext folder (ext_go_detail, prom, comext) or DS-* code while the Comext dataflow list cannot be loaded. `not_a_folder`: The provided theme_code identifies a dataset or table entry instead of a folder. `upstream_fault`: The server had no catalogue loaded yet, and Eurostat's table of contents answered HTTP 501, which is not retried, or a 4xx status other than 408 and 429, which its URL carries no caller input to cause; or it answered HTTP 408, HTTP 429 or another HTTP 5xx, or could not be reached on every retry, which the error marks retryable. Once a catalogue is loaded, a failed refresh serves that copy instead. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `not_found`: theme_code is not in the catalogue, or is a Comext folder (ext_go_detail, prom, comext) or DS-* code while the Comext list cannot be loaded. `not_a_folder`: theme_code names a dataset or table, not a folder. `upstream_fault`: No catalogue was loaded yet and Eurostat's table of contents could not be read: marked retryable after a timeout, rate limit, server error or unreachable host on every retry, not after a refusal Eurostat would repeat. Once a catalogue is loaded, a failed refresh serves that copy instead. Other values are possible when a failure originates below the handler."
    • changedOutput schema / properties / itemCount / description
      Previous value: -"Number of items returned in this level."New value: +"Number of items at this level."
    • changedOutput schema / properties / items / description
      Previous value: -"Immediate children of the requested theme, or the root themes if theme_code was omitted."New value: +"Immediate children of theme_code, or the root themes without it."
    • changedOutput schema / properties / items / items / properties / code / description
      Previous value: -"Theme or dataset code. Pass to theme_code to drill into a folder, or use as dataset_code for data tools."New value: +"A folder code to pass as theme_code, or a dataset code for eurostat_get_dataset_info."
    • changedOutput schema / properties / items / items / properties / dataEnd / description
      Previous value: -"Most recent data period. Omitted for folders and when not reported."New value: +"Latest period; omitted for folders and when not reported."
    • changedOutput schema / properties / items / items / properties / dataStart / description
      Previous value: -"Earliest data period (e.g., \"1995\"). Omitted for folders and when not reported."New value: +"Earliest period (e.g., \"1995\"); omitted for folders and when not reported."
    • changedOutput schema / properties / items / items / properties / hasChildren / description
      Previous value: -"True when this folder contains sub-items. Only meaningful for type \"folder\"."New value: +"True when a folder holds sub-items."
    • changedOutput schema / properties / items / items / properties / label / description
      Previous value: -"Human-readable name."New value: +"Display name."
    • addedOutput schema / properties / items / items / properties / lastUpdated
      Added value: +{
      +  "description": "Date of the last data update (e.g., \"22.05.2026\"); omitted for folders and when not reported.",
      +  "type": "string"
      +}
    • changedOutput schema / properties / items / items / properties / obsCount / description
      Previous value: -"Approximate observation count. Omitted for folders and when not reported."New value: +"Approximate observation count; omitted for folders and when not reported."
    • changedOutput schema / properties / items / items / properties / type / description
      Previous value: -"Item type: \"folder\" has sub-items; \"dataset\"/\"table\" can be queried for data."New value: +"Entry type: \"folder\", or a queryable \"dataset\" or \"table\"."
    • changedOutput schema / properties / nextStep / description
      Previous value: -"Suggested next action based on these results. Populated when there is a clear follow-up call."New value: +"Suggested next call, when one is clear."
    • changedOutput schema / properties / notice / description
      Previous value: -"Names each part of the catalogue this listing is missing — the Comext collections, or updates since a refresh failed — and what to do about it. Omitted when the whole catalogue answered."New value: +"Names any part of the catalogue missing from this listing and what to do about it."
    • changedOutput schema / properties / otherPlacements / description
      Previous value: -"Breadcrumbs of the other branches that file this same theme_code. Eurostat lists a few folder codes in more than one branch; the items above come from the first one the catalogue lists, which never has fewer children than the branches named here but can list different ones. theme_code takes a bare code, so those branches cannot be addressed directly — browse down to them from the root instead. Omitted when the code has a single placement — the normal case."New value: +"Breadcrumbs of other branches filing this same folder code. items come from the first branch the catalogue lists, which never has fewer children but can list different ones; reach the others by browsing down from the root. Omitted for a code with one placement."
    • changedOutput schema / properties / otherPlacements / items / description
      Previous value: -"Breadcrumb from root to one other folder carrying the requested code."New value: +"Breadcrumb from the root to one other folder carrying the code."
    • changedOutput schema / properties / parentPath / description
      Previous value: -"Breadcrumb from root to the requested theme (e.g., [\"Database by themes\", \"Economy and finance\"]). Empty when browsing root."New value: +"Breadcrumb from the root to theme_code; empty at the root."
    • changedOutput schema / properties / themeCode / description
      Previous value: -"Folder code that was browsed, or omitted for root."New value: +"Folder code browsed; omitted at the root."
  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 provided theme_code does not exist in the TOC — or is a Comext folder (ext_go_detail, prom, comext) or DS-* code while the Comext dataflow list cannot be loaded. `not_a_folder`: The provided theme_code identifies a dataset or table entry instead of a folder. `upstream_fault`: The server had no catalogue loaded yet, and Eurostat's table of contents 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. Once a catalogue is loaded, a failed refresh serves that copy instead. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `not_found`: The provided theme_code does not exist in the TOC — or is a Comext folder (ext_go_detail, prom, comext) or DS-* code while the Comext dataflow list cannot be loaded. `not_a_folder`: The provided theme_code identifies a dataset or table entry instead of a folder. `upstream_fault`: The server had no catalogue loaded yet, and Eurostat's table of contents answered HTTP 501, which is not retried, or a 4xx status other than 408 and 429, which its URL carries no caller input to cause; or it answered HTTP 408, HTTP 429 or another HTTP 5xx, or could not be reached on every retry, which the error marks retryable. Once a catalogue is loaded, a failed refresh serves that copy instead. 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 provided theme_code does not exist in the TOC — or is a Comext folder (ext_go_detail, prom, comext) or DS-* code while the Comext dataflow list cannot be loaded. `not_a_folder`: The provided theme_code identifies a dataset or table entry instead of a folder. `upstream_fault`: The server had no catalogue loaded yet, and Eurostat's table of contents answered HTTP 5xx or could not be reached on every retry, which the error marks retryable. Once a catalogue is loaded, a failed refresh serves that copy instead. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `not_found`: The provided theme_code does not exist in the TOC — or is a Comext folder (ext_go_detail, prom, comext) or DS-* code while the Comext dataflow list cannot be loaded. `not_a_folder`: The provided theme_code identifies a dataset or table entry instead of a folder. `upstream_fault`: The server had no catalogue loaded yet, and Eurostat's table of contents 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. Once a catalogue is loaded, a failed refresh serves that copy instead. Other values are possible when a failure originates below the handler."
  4. Changed1 schema field changed
    • changedInput schema / properties / theme_code / description
      Previous value: -"Folder code to expand (e.g., \"economy\", \"reg\"). Omit to list the top-level theme folders."New value: +"Folder code to expand (e.g., \"economy\", \"reg\"). Exact codes take precedence, then case-insensitive matching applies. Omit to list the top-level theme folders."
  5. Changed5 schema fields changed
    • addedOutput schema / properties / catalogueLoadedAt
      Added value: +{
      +  "description": "When the catalogue that answered was loaded (ISO 8601). Present only when a refresh failed and that older copy is still in service; omitted otherwise.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / comextListMissing
      Added value: +{
      +  "description": "True on a browse of ext_go or icts when the Comext dataflow list could not be loaded, so the DS-* collection folder filed there is not listed. Omitted otherwise.",
      +  "type": "boolean"
      +}
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `not_found`: The provided theme_code does not exist in the TOC. `not_a_folder`: The provided theme_code identifies a dataset or table entry instead of a folder. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `not_found`: The provided theme_code does not exist in the TOC — or is a Comext folder (ext_go_detail, prom, comext) or DS-* code while the Comext dataflow list cannot be loaded. `not_a_folder`: The provided theme_code identifies a dataset or table entry instead of a folder. `upstream_fault`: The server had no catalogue loaded yet, and Eurostat's table of contents answered HTTP 5xx or could not be reached on every retry, which the error marks retryable. Once a catalogue is loaded, a failed refresh serves that copy instead. Other values are possible when a failure originates below the handler."
    • changedOutput schema / properties / error / properties / data / properties / reason / examples
      Previous value: -[
      -  "not_found",
      -  "not_a_folder"
      -]New value: +[
      +  "not_found",
      +  "not_a_folder",
      +  "upstream_fault"
      +]
    • addedOutput schema / properties / notice
      Added value: +{
      +  "description": "Names each part of the catalogue this listing is missing — the Comext collections, or updates since a refresh failed — and what to do about it. Omitted when the whole catalogue answered.",
      +  "type": "string"
      +}
  6. Changed2 schema fields changed
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `not_found`: The provided theme_code does not exist as a folder in the TOC. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `not_found`: The provided theme_code does not exist in the TOC. `not_a_folder`: The provided theme_code identifies a dataset or table entry instead of a folder. Other values are possible when a failure originates below the handler."
    • changedOutput schema / properties / error / properties / data / properties / reason / examples
      Previous value: -[
      -  "not_found"
      -]New value: +[
      +  "not_found",
      +  "not_a_folder"
      +]
  7. 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": [
      +      "items",
      +      "parentPath",
      +      "itemCount"
      +    ]
      +  },
      +  {
      +    "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 provided theme_code does not exist as a folder in the TOC. Other values are possible when a failure originates below the handler.",
      +          "examples": [
      +            "not_found"
      +          ],
      +          "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: -[
      -  "items",
      -  "parentPath",
      -  "itemCount"
      -]
  8. Changed1 schema field changed
    • addedOutput schema / properties / otherPlacements
      Added value: +{
      +  "description": "Breadcrumbs of the other branches that file this same theme_code. Eurostat lists a few folder codes in more than one branch; the items above come from the first one the catalogue lists, which never has fewer children than the branches named here but can list different ones. theme_code takes a bare code, so those branches cannot be addressed directly — browse down to them from the root instead. Omitted when the code has a single placement — the normal case.",
      +  "items": {
      +    "description": "Breadcrumb from root to one other folder carrying the requested code.",
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  "type": "array"
      +}
  9. Changed2 schema fields changed
    • changedInput schema / properties / theme_code / description
      Previous value: -"Folder code to expand (e.g., \"econ\", \"reg\"). Omit to list the top-level theme folders."New value: +"Folder code to expand (e.g., \"economy\", \"reg\"). Omit to list the top-level theme folders."
    • changedOutput schema / properties / parentPath / description
      Previous value: -"Breadcrumb from root to the requested theme (e.g., [\"Economy and finance\", \"National accounts\"]). Empty when browsing root."New value: +"Breadcrumb from root to the requested theme (e.g., [\"Database by themes\", \"Economy and finance\"]). Empty when browsing root."
  10. Changed3 schema fields changed
    • changedInput schema / properties / theme_code / description
      Previous value: -"Folder code to expand (e.g., \"econ\", \"reg\"). Omit to list the 11 top-level theme folders."New value: +"Folder code to expand (e.g., \"econ\", \"reg\"). Omit to list the top-level theme folders."
    • changedOutput schema / properties / items / description
      Previous value: -"Immediate children of the requested theme, or the 11 root themes if theme_code was omitted."New value: +"Immediate children of the requested theme, or the root themes if theme_code was omitted."
    • addedOutput schema / properties / nextStep
      Added value: +{
      +  "description": "Suggested next action based on these results. Populated when there is a clear follow-up call.",
      +  "type": "string"
      +}
  11. Changed3 schema fields changed
    • addedOutput schema / properties / itemCount
      Added value: +{
      +  "description": "Number of items returned in this level.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / themeCode
      Added value: +{
      +  "description": "Folder code that was browsed, or omitted for root.",
      +  "type": "string"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "items",
      -  "parentPath"
      -]New value: +[
      +  "items",
      +  "parentPath",
      +  "itemCount"
      +]
  12. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, openWorld), and the description adds genuinely new behavioral context: the tree mirrors the dissemination table of contents plus Comext DS-* collections, and collections not disseminated (e.g. legacy PRODCOM DS-056120) appear nowhere. It does not mention tree depth limits, result size, or pagination, and the clause "with one that folder's immediate subfolders" is garbled enough to slow parsing.

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 sibling contrast, then the parameter behavior, then the coverage caveat — a sensible ordering with little waste. The malformed "with one that folder's immediate subfolders" sentence and the very granular DS-056120 example cost it a point.

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?

For a single-parameter, annotated, read-only browse tool with an output schema, this covers purpose, alternative, calling modes, and an important coverage caveat (some datasets are absent from the tree entirely). Nothing essential to correct invocation is missing.

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 already documents the parameter and its omission case, so the baseline is 3; the description earns an extra point by explaining the return-shape consequence of setting or omitting theme_code, which the schema 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?

The description opens with a specific verb and resource ("Navigate the Eurostat theme tree") and immediately contrasts itself with the keyword-based sibling eurostat_search_datasets, so an agent can choose between them without opening a 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?

It states the exact selection condition — discovery when you know the domain but not the dataset code — and names the alternative for the opposite case. It also distinguishes the two calling modes (omit theme_code for top-level folders, supply it to expand one branch).

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.