save_query_builder
Saves .dax and .dax.queryBuilder artifacts from a structured query builder JSON payload into a specified directory for later reuse.
Instructions
Save .dax and .dax.queryBuilder artifacts from a structured query builder JSON payload.
STOP — before calling this tool you MUST:
Ask the user: "Where should I save the query files?" and wait for their answer.
Call get_query_builder_schema to see the required JSON shape.
Use the user's answer as queries_dir. If queries_dir is empty this tool will error.
The JSON payload requires these fields:
"name": a slug for the query (e.g. "copilot_acr")
"connection_name": the connection to use
"columns": list of column expressions like "'Calendar'[Fiscal Month]"
"measures": list of {caption, expression} objects
"filters": list of filter definitions
"order_by": list of sort definitions
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": {
"query_builder_json": "<query_builder_json>"
},
"name": "save_query_builder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| overwrite | No | ||
| queries_dir | No | ||
| query_builder_json | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |