scaffold_power_query
Generates Power Query M code to import DAX query results into Excel and returns the code, table name, and paste instructions.
Instructions
Generate Power Query M code for importing DAX query results into Excel.
Returns JSON with the generated M code, table name, and paste instructions.
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": {
"connection_name": "<connection_name>",
"query": "<query>"
},
"name": "scaffold_power_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| table_name | No | DAXResults | |
| connection_name | Yes | ||
| connections_dir | No | Connections |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |