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

NameTypeRequiredDescription
dataset_idstringyesONS 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

FieldTypeDescription
idstring | nullDataset ID
titlestring | nullDataset title
descriptionstring | nullDataset description
themestring | nullTheme category
statestring | nullDataset state
typestring | nullDataset type
national_statisticboolean | nullWhether it is a national statistic
release_frequencystring | nullRelease frequency
next_releasestring | nullNext release date
licensestring | nullLicense information
publisherstring | nullPublisher name
contactsarrayContact information
latest_version_idstring | nullID 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.

Regenerated from source · build July 6, 2026