define_kpi_catalog
Create, merge, and validate a versioned YAML KPI catalog for Power BI/Fabric, with optional process presets and dry-run diff preview before writing changes.
Instructions
Create, merge, and validate a versioned YAML KPI catalog.
Args: catalog_path: Target YAML path inside PBI_WORKSPACE_ROOT. kpis: Optional list (or JSON string) of KPI definition objects. version: Catalog semantic version string. approver: Optional human approver / owner tag. merge: Merge incoming KPIs into existing catalog when True. include_process_preset: Seed the 7 built-in operational/process KPIs. dry_run: Preview diff/validation without writing to disk (default True).
Returns: Dict with validation result, catalog SHA-256, and unified YAML diff.
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": {
"catalog_path": "<catalog_path>"
},
"name": "define_kpi_catalog"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kpis | No | ||
| merge | No | ||
| dry_run | No | ||
| version | No | 1.0.0 | |
| approver | No | ||
| catalog_path | Yes | ||
| include_process_preset | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||