generate_data_dictionary
Generate a YAML data dictionary by inspecting live Power BI semantic model schemas to discover tables, columns, measures, and relationships, with optional file output.
Instructions
Generate a data dictionary YAML from live schema inspection.
Queries MDSCHEMA_MEASUREGROUPS, MDSCHEMA_MEASURES, MDSCHEMA_DIMENSIONS, and MDSCHEMA_LEVELS to discover tables, columns, and measures, then builds a DataDictionary scaffold. If optional TMSCHEMA rowsets are available, it also includes high-confidence relationship metadata.
Required parameters: connection_name. Optional parameters: connections_dir, output_path — when provided the YAML is written to disk.
Returns JSON with yaml_content, table_count, measure_count, and file_path (when output_path is given).
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": {
"connection_name": "<connection_name>"
},
"name": "generate_data_dictionary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output_path | No | ||
| connection_name | Yes | ||
| connections_dir | No | Connections |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |