get_version
Pack: uk-ons · Endpoint: https://gateway.pipeworx.io/uk-ons/mcp
Fetch metadata for a specific version of an ONS dataset edition, including dimension definitions with codelist links, CSV/XLS download URLs, release date, and publication state.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
dataset_id | string | yes | ONS dataset ID |
edition | string | yes | Edition label |
version | string | yes | Version (e.g., “1”, “2”) |
Example call
Arguments
{
"dataset_id": "cpih01",
"edition": "time-series",
"version": "1"
}
curl
curl -X POST https://gateway.pipeworx.io/uk-ons/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_version","arguments":{"dataset_id":"cpih01","edition":"time-series","version":"1"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_version', {
"dataset_id": "cpih01",
"edition": "time-series",
"version": "1"
});
Response shape
Always returns: dataset_id, edition, version, state, release_date, dimensions, downloads
| Field | Type | Description |
|---|---|---|
dataset_id | string | Dataset ID |
edition | string | Edition label |
version | integer | Version number |
state | string | null | Version state |
release_date | string | null | Release date |
dimensions | array | Dimension definitions |
downloads | object | Download links for different formats |
Full JSON Schema
{
"type": "object",
"properties": {
"dataset_id": {
"type": "string",
"description": "Dataset ID"
},
"edition": {
"type": "string",
"description": "Edition label"
},
"version": {
"type": "integer",
"description": "Version number"
},
"state": {
"type": [
"string",
"null"
],
"description": "Version state"
},
"release_date": {
"type": [
"string",
"null"
],
"description": "Release date"
},
"dimensions": {
"type": "array",
"description": "Dimension definitions",
"items": {
"type": "object",
"properties": {
"name": {
"type": [
"string",
"null"
],
"description": "Dimension name"
},
"id": {
"type": [
"string",
"null"
],
"description": "Dimension ID"
},
"label": {
"type": [
"string",
"null"
],
"description": "Dimension label"
}
}
}
},
"downloads": {
"type": "object",
"description": "Download links for different formats",
"properties": {
"csv": {
"type": [
"string",
"null"
],
"description": "CSV download link"
},
"csvw": {
"type": [
"string",
"null"
],
"description": "CSVW download link"
},
"xls": {
"type": [
"string",
"null"
],
"description": "XLS download link"
},
"xlsx": {
"type": [
"string",
"null"
],
"description": "XLSX download link"
}
}
}
},
"required": [
"dataset_id",
"edition",
"version",
"state",
"release_date",
"dimensions",
"downloads"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"uk-ons": {
"url": "https://gateway.pipeworx.io/uk-ons/mcp"
}
}
}
See Getting Started for client-specific install steps.