run_ad_hoc_query
Execute a DAX query against a raw connection string to retrieve Power BI semantic model results as a preformatted table with a numbered follow-up menu.
Instructions
Run a DAX query against a raw connection string.
IMPORTANT: This tool returns a COMPLETE, pre-formatted response for the user. Output the returned string as your ENTIRE response — do NOT summarize, truncate, or convert the table to bullet points. The output includes a data table and a numbered follow-up menu that must both appear.
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_string": "<connection_string>",
"query": "<query>"
},
"name": "run_ad_hoc_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| profile | No | ||
| max_rows | No | ||
| preview_rows | No | ||
| connection_string | Yes | ||
| command_timeout_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |