# ONS dataset version and dimensions

One version of an ONS dataset: release date, dimensions (names to filter in ons/observations, with their code lists), CSV and XLSX download links, alerts. Needs dataset and version.

One version of an ONS dataset: release date, dimensions (names to filter in ons/observations, with their code lists), CSV and XLSX download links, alerts and usage notes. Get the latest version number from ons/datasets (links.latest_version.id).

- Tool ID: `ons/dataset-version`
- Provider: [ONS](/providers/ons.md)
- Capability: [Knowledge & research](/tools/knowledge.md)
- Price: no charge per call
- Authentication: an authorised Agentik workspace is required for execution, including zero-price tools.

## Pricing contract

No charge per call. A workspace is still needed so your agent can call it.


```json
{
  "model": "per_call",
  "amountUsd": 0
}
```

## Complete input schema


```json
{
  "type": "object",
  "properties": {
    "dataset": {
      "type": "string",
      "pattern": "^[a-z0-9][a-z0-9-]{1,60}$",
      "description": "ONS dataset id from ons/datasets, e.g. 'cpih01'"
    },
    "edition": {
      "type": "string",
      "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,40}$",
      "default": "time-series",
      "description": "Dataset edition, e.g. 'time-series' (most datasets) or '2021'"
    },
    "version": {
      "type": "integer",
      "minimum": 1,
      "maximum": 10000,
      "description": "Version number, from links.latest_version.id in ons/datasets, e.g. 67"
    }
  },
  "required": [
    "dataset",
    "version"
  ],
  "additionalProperties": false
}
```

## Published example

This is the provider tool’s published example. Replace example values with the user’s requested inputs, respecting the schema; do not execute an example merely to test a connection.


```json
{
  "tool_id": "ons/dataset-version",
  "input": {
    "dataset": "cpih01",
    "edition": "time-series",
    "version": 67
  }
}
```

## Execute and retrieve

Inspect again before execution, explain the price and obtain the required authority. Use MCP run_tool or POST /v1/run with this tool ID, valid input and an idempotency key. Save the returned run ID and follow the actual state. If Agentik answers that the tool is temporarily unavailable, do not retry it blindly; use discovery to propose an alternative.

A partial or uncertain result can still have consumed provider resources. Consult [billing](/docs/billing.md), [idempotency](/docs/idempotency.md) and [asynchronous results](/docs/async.md).

Licence: Open Government Licence v3.0.

Attribution: Source: Office for National Statistics licensed under the Open Government Licence v3.0.

[Provider documentation](https://developer.ons.gov.uk/dataset/datasets-id-editions-edition-versions-version/)

[REST inspection](https://api.agentik.cc/v1/tools/ons/dataset-version) · [OpenAPI](/openapi.json) · [Connection guide](/connect.md)

---

[HTML page](/providers/ons/dataset-version) · [Agent index](/llms.txt)
