validate_m
Check Power Query M code for syntax errors, unknown references, and argument mismatches with line/column details and plain-English fixes. Pass a formula or source to validate.
Instructions
Check M before using it: syntax errors with line/column and a plain-English cause (missing comma between steps,
unquoted step name, if without else ...), unknown steps/queries/functions with did-you-mean, and wrong argument counts
for library functions. Pass formula (an expression or a whole section document); add source so its query names are
known. Or pass source (+ optional query) alone to validate what is already there.
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": "validate_m"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | ||
| source | No | ||
| formula | No |