get_saved_horoscope
Retrieve a saved horoscope profile and generate its full astrological chart using the stored birth data.
Instructions
Load a saved horoscope profile from the database and generate its astrological chart.
Purpose and Comparison
Use this tool to view or analyze a profile that has been previously saved using save_horoscope.
Contrast with
generate_horoscope: Useget_saved_horoscopeto avoid re-entering full birth parameters for recurring profiles. Usegenerate_horoscopefor raw inputs not saved in the database.Contrast with
list_saved_horoscopes: Uselist_saved_horoscopesto inspect what records exist. Useget_saved_horoscopeto actually load the record and compute its full chart.Contrast with
delete_saved_horoscope: Usedelete_saved_horoscopeto permanently remove records.
Side Effects, Auth, and Rate Limits
Side Effects: Read-only database retrieval and in-memory chart calculations. No database writes or file writes.
Auth/Rate Limits: Runs entirely locally. No authentication or external rate limits apply.
Prerequisites
The target horoscope record must exist in the SQLite database.
To check existing records, first run
list_saved_horoscopes.
Parameter Guidelines & Interactions
At least one of
horoscope_idornamemust be provided.horoscope_id: The unique integer ID of the saved database record.name: The name of the saved person.Interactions & Precedence: If both parameters are supplied,
horoscope_idtakes precedence. If onlynameis provided and multiple records match, the latest saved record for that name is retrieved.
Output Schema and Error Conditions
Returns: A dictionary containing the full astrological chart structure (
chart_data) with an added"metadata"section:thien_ban: Demographic, pillars/Can-Chi, and basic zodiac metadata.dia_ban: List of 12 houses (cung), each containing names, elements, stars, and transit info.metadata: A dictionary with keys{"id": <int>, "notes": <str>, "created_at": <timestamp>}containing database record details.
Errors:
Returns
{"error": "Horoscope record not found"}if no matching record exists in the database for the given ID or name.Returns
{"error": "error_message"}if database access fails.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| horoscope_id | No |