profile_dataset
Profiles a tabular dataset to assess whether it can be trusted, returning ranked data-quality issues, missing-value shares, duplicates, outliers, broken dates, and schema drift before use.
Instructions
Data-quality passport of one tabular resource. Use it when the user asks whether a dataset can be trusted, or before relying on it for numbers. Returns ranked issues plus per-column share of missing values (empty cells and placeholders like 'null' or 'н/д'), exact duplicate rows, repeated identifiers, outliers in numeric columns, broken dates (impossible, not a date, mixed formats), text damage (mojibake, padded values), file encoding and schema drift against sibling CSV files of the same dataset. Downloads the file; takes seconds. Unlike query, a file over 25 MB or 500000 rows is profiled on its first rows only: check coverage.complete and say so when it is false. Heuristic: outliers and thresholds are candidates to review, see method_note. Read-only.
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>"
},
"name": "profile_dataset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dataset_id | Yes | The dataset_id (or name) of a search_datasets hit. URLs and file paths are rejected. | |
| resource_id | No | A queryable resource_id from get_schema. Omit it to list the dataset's resources (or to profile the only queryable one). | |
| compare_versions | No | Also compare the header and column types with up to 6 sibling CSV files of the dataset (reads only the first 256 KB of each). Set false to skip. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| note | No | ||
| rows | No | ||
| error | No | ||
| notes | No | ||
| issues | No | Ranked findings, worst first. | |
| source | No | Provenance; always present when a profile is returned. | |
| columns | No | ||
| citation | No | ||
| coverage | No | ||
| encoding | No | ||
| resources | No | ||
| dataset_id | No | ||
| duplicates | No | ||
| dataset_url | No | ||
| method_note | No | ||
| resource_id | No | ||
| sparse_rows | No | ||
| issue_counts | No | ||
| schema_drift | No | ||
| columns_total | No | ||
| dataset_title | No | ||
| resource_name | No | ||
| malformed_rows | No | CSV lines that did not fit the table (null for non-CSV). | |
| columns_profiled | No |