format_dax
Standardize DAX expressions by uppercasing functions and normalizing operator spacing, either standalone or in TMDL files. Use it to produce consistent, readable measures before applying changes.
Instructions
Standardize DAX formatting (uppercase functions, clean operator spacing) standalone or in TMDL.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "format_dax"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | No | Optional table name. | |
| dry_run | No | When true, return the proposed ChangePlan without modifying files. Defaults to true. Set false to execute the write with post-write validation. | |
| workspace | No | Workspace identifier returned by list_workspaces (prefer workspace_id or unique name). Optional when the server is bound to a single workspace. | |
| measure_name | No | Measure name to format in-place in TMDL. | |
| dax_expression | No | Optional DAX string to format (standalone or replacement). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||