export_kpi_report_bundle
Generate printable PDF and styled Excel KPI report bundles with SHA-256 checksums, optional summaries and detail tabs, PII stripping, and dry-run planning.
Instructions
Render deterministic KPIs into printable PDF and styled Excel files.
Args: computed_kpis: ComputeProcessKpisResult dict (or JSON string). output_dir: Destination folder inside PBI_WORKSPACE_ROOT. report_title: Printable report header/title. summary_text: Optional verified executive summary text to embed in PDF/XLSX. detail_rows_path: Optional source Excel/CSV to include as bounded detail tab. detail_sheet_name: Optional worksheet name for detail_rows_path. formats: Output formats subset of ["xlsx", "pdf"]. include_pii_columns: Preserve PII-named columns in detail tab when True (default False). dry_run: Plan artifact paths without writing files when True (default True).
Returns: Dict with generated file paths, SHA-256 checksums, stripped PII columns, and status.
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": {
"computed_kpis": "<computed_kpis>",
"output_dir": "<output_dir>"
},
"name": "export_kpi_report_bundle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | ||
| formats | No | ||
| output_dir | Yes | ||
| report_title | No | Reporte de Control y KPIs | |
| summary_text | No | ||
| computed_kpis | Yes | ||
| detail_rows_path | No | ||
| detail_sheet_name | No | ||
| include_pii_columns | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||