ons_data_query
Query live ONS observations by dataset, edition, version, or search term. Apply filters like geography, time range, and measure to get targeted UK statistics.
Instructions
Query live ONS observations (dataset/edition/version or search term).
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": "ons_data_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| term | No | Search term for auto-resolving dataset/edition/version | |
| tool | No | ||
| limit | No | ||
| query | No | Alias for term | |
| dataset | No | ONS dataset ID for live mode | |
| edition | No | ONS dataset edition for live mode | |
| filters | No | Explicit dimension-name filters passed through to ONS observations. | |
| measure | No | ||
| version | No | ONS dataset version for live mode | |
| geography | No | ||
| timeRange | No | Format 'YYYY Qn-YYYY Qn' or single period 'YYYY Qn' |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | ||
| count | Yes | ||
| limit | Yes | ||
| filters | No | ||
| results | Yes | ||
| timeRange | No | ||
| dimensions | No | ||
| timeValues | No | ||
| nextPageToken | No |