Distinct values
distinct_valuesMost frequent values of a column with counts. Use it to get exact spellings (e.g. "France" vs "FR") before filtering.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"dataset_id": "<dataset_id>",
"column": "<column>"
},
"name": "distinct_values"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| where | No | ||
| column | Yes | ||
| version | No | The dataset version from an earlier result's meta (or one listed in describe_dataset's versions). Pass it when you chain calls (distinct_values, then aggregate): the answer stays on that version even if the data was refreshed in between (meta then has stale: true and current_version). If that version is no longer kept, the call fails with source_changed. | |
| dataset_id | Yes | Dataset id from list_datasets, e.g. ds_ab12cd34ef56 |