Skip to main content
Glama
adityarya24

Astro Skill MCP Server

Generate PDF Report

generate_pdf_report

Render client-facing PDF reports with Vedic astrology charts, planet table, and dasha timeline from a kundali. Supports Hindi/English and optional transit, panchang sections.

Instructions

Render a client-facing PDF report (cover, Lagna/Chandra/Navamsa charts, planet table, dasha timeline) from a kundali plus optional sections. renderer='html' (default) uses Chromium via Playwright for polished Devanagari shaping; renderer='reportlab' is a pure-Python backend for environments without Chromium (such as the default Docker image). Returns the report record with the path of the written PDF.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dashaNoOptional dasha JSON from calculate_dasha; adds the dasha timeline section.
gocharNoOptional gochar JSON from calculate_gochar; adds the transit section.
db_pathNoSQLite store to record the report in; when omitted the report is only written to disk.
kundaliYesKundali JSON exactly as returned by the calculate_kundali tool.
languageNoReport language: 'hin' or 'hi' for Hindi (Devanagari), 'en' for English.hin
panchangNoOptional panchang JSON from calculate_panchang; adds the panchang section.
rendererNo'html' renders via Chromium/Playwright (best Devanagari shaping); 'reportlab' needs no browser.html
templateNo'standard' report, or 'pandit_v1' — the premium Hindi janma-patrika layout (requires renderer='html').standard
client_idNoClient identifier the report is filed under.anonymous
output_dirNoDirectory the report file is written into (default: data/reports).
client_nameNoClient/native name shown on the PDF cover page
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations provide minimal info (readOnlyHint=false, destructiveHint=false). The description adds value by explaining the output (returns report record with PDF path), the two rendering backends, and the requirement for Chromium with 'html' renderer. It does not mention disk writing or database recording explicitly, but these are implied. Overall, it adds sufficient behavioral context beyond annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is three sentences: purpose, renderer options, return value. No fluff, front-loaded with the main action. Every sentence earns its place, achieving high conciseness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (11 parameters, no output schema), the description covers the main output (report record with path) and explains the two renderer strategies. It does not detail every optional section or the exact return structure, but for a PDF generation tool with many optional inputs, the description is reasonably complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3. The description adds meaning for the 'renderer' parameter by explaining when to use each backend and the trade-off (Devanagari shaping vs. no browser). It also lists optional sections (dasha, gochar, panchang) which aligns with parameter descriptions. This extra context raises the score.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly specifies the verb 'Render' and the resource 'client-facing PDF report', listing exact components (cover, charts, planet table, dasha timeline). It distinguishes from sibling tools that calculate or output JSON, making its purpose unique.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage after obtaining a kundali (from calculate_kundali) and optionally dasha/gochar/panchang. It details renderer options for different environments but does not explicitly compare to sibling tools or state when not to use it. The context signals show it is the only PDF generation tool among siblings, so guidance is adequate but not exhaustive.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/adityarya24/astro-skill'

If you have feedback or need assistance with the MCP directory API, please join our Discord server