create_semantic_model_from_schema
Generate a Power BI semantic model and PBIP project from a YAML or JSON schema spec defining tables, columns, relationships, and hierarchies.
Instructions
Generate a TMDL semantic model and PBIP project from a declarative schema spec.
Use this tool when the user asks to:
Create, scaffold, or generate a new Power BI semantic model from scratch.
Define tables, columns, data types, relationships, and hierarchies declaratively.
Args: spec_yaml: YAML specification of tables, columns, types, and relationships. spec_json: JSON specification (either as a string or a structured object/dict). output_pbip_path: Target directory to write the generated .pbip project. dry_run: If True, validate specification without writing files to disk.
Returns: Dict with tables created, relationships created, hierarchies created, and validation status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | ||
| spec_json | No | ||
| spec_yaml | No | ||
| output_pbip_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||