Generate JSON Report
generate_report_jsonAssemble a structured astrology report draft (birth chart summary plus optional dasha/panchang/gochar sections) and write it to disk as JSON. Returns the report record: report_id, path of the written file, client_id, and created_at.
Instructions
Assemble a structured astrology report draft (birth chart summary plus optional dasha/panchang/gochar sections) and write it to disk as JSON. Returns the report record: report_id, path of the written file, client_id, and created_at.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. | |
| 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 | |
| gochar_narrative | No | Optional gochar narrative JSON from build_antardasha_gochar_narrative. If missing, it will be computed automatically. |