detect_column_types
Automatically detect and apply column data types from each column's first non-null value. Eliminates manual schema specification when transforming tables in Power Query.
Instructions
Power Query Detect Data Type: auto-detect and apply each column's type from its data. Appends a self-contained Table.TransformColumnTypes whose {column, type} pairs are inferred from the first non-null value of every column - no schema needs to be supplied.
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": {
"sessionId": "<sessionId>",
"table": "<table>"
},
"name": "detect_column_types"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | ||
| sessionId | Yes | ||
| partitionName | No | partition name (optional; defaults to the first partition) |