generate_measure_docs
Generate and write TMDL documentation docstrings for Power BI measures, with optional custom text and a dry-run preview before modifying files.
Instructions
Generate and write a /// TMDL documentation docstring for a measure.
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": {
"measure_name": "<measure_name>"
},
"name": "generate_measure_docs"
}
}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. | |
| description | No | Optional custom description; auto-generated from DAX if omitted. | |
| measure_name | Yes | Measure name to document in TMDL. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||