inspect_data
Preview CSV, Parquet, or JSON datasets to check structure, data types, missing values, and unique counts before AutoML model training.
Instructions
Get comprehensive statistics and a preview of the dataset to understand its quality and structure.
Use this to check for missing values, unique counts, and basic data types.
- NOTE: Please use absolute paths for data_path to avoid path resolution errors.
- NOTE: For files larger than 10,000 rows, statistics are computed on a random sample for performance.
Args:
data_path: Path to the CSV, Parquet, or JSON file.
n_rows: Number of rows to show in head/tail/sample previews (default: 5).
Returns:
JSON string containing structure, stats, and previews.
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": {
"data_path": "<data_path>"
},
"name": "inspect_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n_rows | No | ||
| data_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |