get_table_sql
Extract a table's partition SQL query with line numbers and surrounding context. Use it to audit or edit Value.NativeQuery definitions in Power BI semantic models.
Instructions
Extract the partition SQL query (with line numbers and M context) for a table.
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": "get_table_sql"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| partition | No | Optional partition name if the table has multiple SQL partitions. | |
| workspace | No | Workspace identifier returned by list_workspaces (prefer workspace_id or unique name). Optional when the server is bound to a single workspace. | |
| table_name | No | Table name containing a Value.NativeQuery SQL partition. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||