suggest_dtypes
Recommends better column dtypes to reduce memory usage and fix incorrect types, showing per-column and total savings.
Instructions
Recommend more memory-efficient or more-correct column dtypes.
For each column, proposes a better dtype when one exists: text that is fully
numeric to a numeric type, low-cardinality text to category, and
oversized integer/float columns downcast to smaller types. Reports per-column
and total estimated memory savings.
Use this to help a user shrink a DataFrame's memory footprint or fix columns that were loaded with the wrong type.
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": {
"path": "<path>"
},
"name": "suggest_dtypes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| max_rows | No |