Generate PDF Report
generate_pdf_reportRender a client-facing PDF report including Lagna/Navamsa charts, planet table, and dasha timeline from a kundali. Supports optional sections like panchang and transit, written to disk.
Instructions
Render a client-facing PDF report (cover, Lagna/Navamsa charts, planet table, dasha timeline) from a kundali plus optional sections, using the in-process ReportLab renderer. Returns the report record with the path of the written PDF.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| brand | No | Optional white-label footer text. Empty keeps the report's neutral footer. | |
| dasha | No | Optional dasha JSON from calculate_dasha; adds the dasha timeline section. | |
| gochar | No | Optional gochar JSON from calculate_gochar; adds the transit section. | |
| db_path | No | SQLite store to record the report in; when omitted the report is only written to disk. Must resolve inside the server working directory, the system temp directory, or ASTRO_MCP_BASE_DIR; other paths are rejected. | |
| kundali | Yes | Kundali JSON exactly as returned by the calculate_kundali tool. | |
| language | No | Report language: 'hin' or 'hi' for Hindi (Devanagari), 'en' for English. | hin |
| panchang | No | Optional panchang JSON from calculate_panchang; adds the panchang section. | |
| renderer | No | PDF rendering backend. Only the pure-Python ReportLab renderer is supported. | reportlab |
| template | No | PDF layout. Only the standard factual report template is supported. | standard |
| client_id | No | Client identifier the report is filed under. | anonymous |
| output_dir | No | Directory the report file is written into (default: data/reports). Must resolve inside the server working directory, the system temp directory, or ASTRO_MCP_BASE_DIR; other paths are rejected. | |
| client_name | No | Client/native name shown on the PDF cover page |