Skip to main content
Glama

Data stories: real numbers from the open-data catalogue

fetch_dataset
Read-onlyIdempotent

Real numbers for a data story, never from memory: open data (World Bank, SCB, Eurostat, Our World in Data) and their own channel's statistics. Returns a preview and a ref for the story.

Input Schema

NameRequiredDescriptionDefault
toNoLast year.
topNoHow many series by last value (default 12, at most 60; for a map leave it out — every region, up to 250).
fromNoFirst year.
pickNoSeries to keep: country or kommun names (any language) or ISO codes.
queryYesWhat the story is about, in the person's words: 'Sveriges befolkning sedan 1960', 'CO2 per person i Norden'.
regionNo
datasetNoA dataset id from an earlier answer when you already know which one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedOutput schema / (root)
      Previous value: -{
      -  "$schema": "http://json-schema.org/draft-07/schema#",
      -  "additionalProperties": false,
      -  "properties": {
      -    "candidates": {
      -      "items": {
      -        "additionalProperties": {},
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    "catalogue": {
      -      "items": {
      -        "additionalProperties": {},
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    "dataset": {
      -      "type": "string"
      -    },
      -    "error": {
      -      "type": "string"
      -    },
      -    "keys": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "from": {
      -          "type": "number"
      -        },
      -        "n": {
      -          "type": "number"
      -        },
      -        "to": {
      -          "type": "number"
      -        }
      -      },
      -      "required": [
      -        "from",
      -        "to",
      -        "n"
      -      ],
      -      "type": "object"
      -    },
      -    "name": {
      -      "type": "string"
      -    },
      -    "ref": {
      -      "additionalProperties": {},
      -      "type": "object"
      -    },
      -    "series": {
      -      "items": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "first": {},
      -          "id": {
      -            "type": "string"
      -          },
      -          "label": {
      -            "type": "string"
      -          },
      -          "last": {}
      -        },
      -        "required": [
      -          "id",
      -          "label"
      -        ],
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    "source": {
      -      "additionalProperties": {},
      -      "type": "object"
      -    },
      -    "tell": {
      -      "type": "string"
      -    },
      -    "unit": {
      -      "type": "string"
      -    }
      -  },
      -  "type": "object"
      -}New value: +null
  2. Changed2 schema fields changed
    • changedInput schema / properties / pick / maxItems
      Previous value: -60New value: +250
    • changedInput schema / properties / top / description
      Previous value: -"How many series by last value (default 12, at most 60)."New value: +"How many series by last value (default 12, at most 60; for a map leave it out — every region, up to 250)."
  3. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and a closed world, so the safety profile needs no restating. The description adds genuinely new behavior beyond that: the enumerated data sources and the return shape ('a preview and a `ref` for the story'), which matters because no output schema exists. It stops short of a 5 by not covering failure modes (no matching data), result size, or how the returned `ref` is consumed downstream.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences with no filler. The source list is compressed into parentheses and the key constraint ('never from memory') plus the return shape are both front-loaded, so an agent can act after one read.

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?

For a 7-parameter tool with no output schema, the description covers purpose, sources, and the returned preview-plus-ref contract, which is the minimum an agent needs to chain into a story-creation tool. It is slightly incomplete on what happens with no matches and on the relationship between `query` and `dataset`, but overall it is adequate for this complexity.

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?

Schema description coverage is 86%, so nearly every parameter already carries its own explanation, including the query phrasing hint and the top/pick/region semantics. The description adds no parameter-level meaning beyond that (nothing about how `dataset` interacts with `query`, or how `pick` narrows results). Baseline 3 applies when the schema does the heavy lifting.

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 names a concrete resource and action: retrieving real statistics from named open-data catalogues (World Bank, SCB, Eurostat, Our World in Data) plus the channel's own statistics. It also states the deliverable (a preview and a `ref` for the story), which separates it from authoring siblings like create_data_story or create_visual_story. It falls short of a 5 because it never states the operation as a verb directed at a dataset, so the exact retrieval semantics ('fetch') are inferred rather than declared.

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

Usage Guidelines3/5

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

The phrase 'never from memory' is a real usage directive: it tells the agent to call this rather than recall statistics. However, no sibling is named as the alternative, and there is no explicit when-not guidance (for example, whether to call this before or after create_data_story, or when an existing `dataset` id makes a re-search unnecessary). Usage is therefore implied rather than spelled out.

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.