get_dataset
Pack: uk-ons · Endpoint: https://gateway.pipeworx.io/uk-ons/mcp
Single dataset metadata: title, description, methodology, contacts, release frequency, latest version, related links.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
dataset_id | string | yes | ONS dataset ID (e.g., “cpih01”, “ashe-table-1”) |
Example call
Arguments
{
"dataset_id": "cpih01"
}
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_dataset","arguments":{"dataset_id":"cpih01"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_dataset', {
"dataset_id": "cpih01"
});
More examples
{
"dataset_id": "ashe-table-1"
}
Response shape
Always returns: id, title, description, theme, state, type, national_statistic, release_frequency, next_release, license, publisher, contacts, latest_version_id
| Field | Type | Description |
|---|---|---|
id | string | null | Dataset ID |
title | string | null | Dataset title |
description | string | null | Dataset description |
theme | string | null | Theme category |
state | string | null | Dataset state |
type | string | null | Dataset type |
national_statistic | boolean | null | Whether it is a national statistic |
release_frequency | string | null | Release frequency |
next_release | string | null | Next release date |
license | string | null | License information |
publisher | string | null | Publisher name |
contacts | array | Contact information |
latest_version_id | string | null | ID of the latest version |
Full JSON Schema
{
"type": "object",
"properties": {
"id": {
"type": [
"string",
"null"
],
"description": "Dataset ID"
},
"title": {
"type": [
"string",
"null"
],
"description": "Dataset title"
},
"description": {
"type": [
"string",
"null"
],
"description": "Dataset description"
},
"theme": {
"type": [
"string",
"null"
],
"description": "Theme category"
},
"state": {
"type": [
"string",
"null"
],
"description": "Dataset state"
},
"type": {
"type": [
"string",
"null"
],
"description": "Dataset type"
},
"national_statistic": {
"type": [
"boolean",
"null"
],
"description": "Whether it is a national statistic"
},
"release_frequency": {
"type": [
"string",
"null"
],
"description": "Release frequency"
},
"next_release": {
"type": [
"string",
"null"
],
"description": "Next release date"
},
"license": {
"type": [
"string",
"null"
],
"description": "License information"
},
"publisher": {
"type": [
"string",
"null"
],
"description": "Publisher name"
},
"contacts": {
"type": "array",
"description": "Contact information",
"items": {
"type": "object",
"properties": {
"name": {
"type": [
"string",
"null"
],
"description": "Contact name"
},
"email": {
"type": [
"string",
"null"
],
"description": "Contact email"
}
}
}
},
"latest_version_id": {
"type": [
"string",
"null"
],
"description": "ID of the latest version"
}
},
"required": [
"id",
"title",
"description",
"theme",
"state",
"type",
"national_statistic",
"release_frequency",
"next_release",
"license",
"publisher",
"contacts",
"latest_version_id"
]
}
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.