List Editions
list_editionsList all named editions of an ONS dataset (e.g., "time-series", "annual"). Returns each edition label, release date, state, and the latest version ID to use with get_version or get_observations.
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": {
"dataset_id": "cpih01"
},
"name": "list_editions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dataset_id | Yes | ONS dataset ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | Yes | Total number of editions | |
| editions | Yes | List of editions | |
| dataset_id | Yes | Dataset ID |