generate_report
Create a 3-page PDF report on model quality: summary metrics, predicted vs actual scatter, error distribution, and feature importance. Returns structured quality metrics for further analysis.
Instructions
Generate a procurement-style model-quality PDF report (3 pages).
Page 1: summary metrics + predicted vs actual scatter.
Page 2: error distribution + median % error by price band.
Page 3: top-N feature importance.
The PDF is the human deliverable; the return value also echoes the same
numbers as a structured `quality` block (identical to get_model_quality)
so you can both hand the user the file AND reason over the metrics.
Works best with models trained via the MCP train tool (which stores
holdout data). For older models, the report may be unavailable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model_id | Yes | ||
| output_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |