Fetch open data
fetch_datasetReal 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.
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": {
"query": "<query>"
},
"name": "fetch_dataset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last year. | |
| top | No | How many series by last value (default 12, at most 60; for a map leave it out — every region, up to 250). | |
| from | No | First year. | |
| pick | No | Series to keep: country or kommun names (any language) or ISO codes. | |
| query | Yes | What the story is about, in the person's words: 'Sveriges befolkning sedan 1960', 'CO2 per person i Norden'. | |
| region | No | ||
| dataset | No | A dataset id from an earlier answer when you already know which one. |