compute_process_kpis
Computes process KPIs deterministically from Excel/CSV files or Power BI datasets, returning KPI values, precision metadata, and warnings for reporting and analysis.
Instructions
Deterministically compute process KPIs from Excel/CSV or Power BI dataset.
Args: source_path: Optional Excel/CSV file path inside PBI_WORKSPACE_ROOT. sheet_name: Optional Excel sheet name. workspace_id: Optional Power BI / Fabric workspace GUID for DAX queries. dataset_id: Optional Power BI / Fabric dataset GUID. catalog_path: Optional YAML KPI catalog path (defaults to built-in preset). kpi_ids: Optional subset of KPI IDs to compute. as_of_date: Optional ISO date YYYY-MM-DD for overdue/cycle calculations. area_filter: Optional area filter (operaciones, proyectos, compras, hsec, etc.). dax_table_name: Fallback table name when executing DAX expressions. impersonated_user_name: Optional RLS effective username (requires write scope). fabric_client: Optional injected FabricClient for testing. auth_mode: Optional auth mode override. tenant_id: Optional Entra ID tenant. client_id: Optional Entra ID client ID.
Returns: Dict with deterministic KPI values, Decimal precision metadata, and warnings.
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": "compute_process_kpis"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kpi_ids | No | ||
| auth_mode | No | ||
| client_id | No | ||
| tenant_id | No | ||
| as_of_date | No | ||
| dataset_id | No | ||
| sheet_name | No | ||
| area_filter | No | ||
| source_path | No | ||
| catalog_path | No | ||
| workspace_id | No | ||
| fabric_client | No | ||
| dax_table_name | No | Control | |
| impersonated_user_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||