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

NameTypeRequiredDescription
dataset_idstringyesONS dataset ID
editionstringyesEdition label
versionstringyesVersion (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

FieldTypeDescription
dataset_idstringDataset ID
editionstringEdition label
versionintegerVersion number
statestring | nullVersion state
release_datestring | nullRelease date
dimensionsarrayDimension definitions
downloadsobjectDownload 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.

Regenerated from source · build July 6, 2026