report_generate
Generate PDF reports from Zabbix monitoring data for availability, host capacity, network bandwidth, or backup success, returning a resource link instead of the document.
Instructions
Generate a PDF report from Zabbix monitoring data. Supported report types: availability (SLA/uptime), capacity_host (CPU/memory/disk), capacity_network (bandwidth/traffic), backup (daily success/fail matrix).
Returns a link, not the document, so a multi-megabyte PDF never enters
the conversation: always a zabbix://reports/<id> MCP resource, and -
when the operator configured a public address for this server - a
download_url any browser can open. Give the user the download_url
when it is there; when it is not, the response says why in
download_url_unavailable and the resource link still holds the file.
Links expire (an hour by default). Pass as_link: false for the old
inline base64 data URI - only practical for small reports.
Two further deliveries exist when the operator enabled them:
save_to_file: true writes the PDF into the server's configured report
directory, and email_to: "ops@example.com" mails it as an attachment.
Both answer with a short receipt (path / recipients / size) and are
refused with a clear message when not configured.
Long-running (5-30 s typically). Clients that support the MCP tasks
extension may invoke this with task: {ttl: 60000} to get a task
handle and poll tasks/get instead of holding a single long HTTP
request - useful when fronted by a proxy with short timeouts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | No | Report period: '7d', '30d', '90d' (default: '30d') | 30d |
| server | No | Target Zabbix server. Available: default. Defaults to 'default' if omitted. | |
| as_link | No | Default true: return a link (an https download_url the user can click, plus the zabbix://reports/<id> MCP resource) instead of the PDF itself, so the document stays out of the conversation context. Set false to force the inline base64 data URI, which is only practical for small reports. | |
| company | No | Company name for report header (overrides config) | |
| email_to | No | Comma-separated recipients to email the PDF to as an attachment instead of returning it inline. Requires [reporting.email] and each address must match the operator's allowed_recipients. | |
| hostgroupid | Yes | Host group ID to include in the report | |
| report_type | Yes | Report type: 'availability', 'capacity_host', 'capacity_network', 'backup' | |
| save_to_file | No | Write the PDF to the server's configured report directory instead of returning it inline. Requires [reporting].output_dir. Returns the path. |