Skip to main content
Glama
Zabbix MCP Server

Zabbix MCP Server

report_generate

Read-only

Generate a PDF report from Zabbix monitoring data for availability, host/network capacity, or backup status, returning a downloadable link instead of embedding large files.

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

NameRequiredDescriptionDefault
periodNoReport period: '7d', '30d', '90d' (default: '30d')30d
serverNoTarget Zabbix server. Available: default. Defaults to 'default' if omitted.
as_linkNoDefault 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.
companyNoCompany name for report header (overrides config)
email_toNoComma-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.
hostgroupidYesHost group ID to include in the report
report_typeYesReport type: 'availability', 'capacity_host', 'capacity_network', 'backup'
save_to_fileNoWrite the PDF to the server's configured report directory instead of returning it inline. Requires [reporting].output_dir. Returns the path.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.42.2
    • addedInput schema / additionalProperties
      Added value: +false
  2. First observedv1.41.0

TDQS

A4.4/5.0
Behavior4/5

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

Goes well beyond the supplied readOnlyHint/openWorldHint annotations: link expiry (~1 hour), typical 5-30 s runtime, the zabbix://reports/<id> resource and download_url/download_url_unavailable response fields, receipts for file/email delivery, and refusal behavior when those are unconfigured. There is a mild tension worth noting - save_to_file writes to the server filesystem and email_to sends mail, which is not purely read-only - but the description discloses both side effects explicitly, so the agent is not misled.

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

Conciseness4/5

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

Front-loaded with purpose and report types, then organized by delivery mode, then runtime/task behavior - a logical reading order with no filler sentences. It is on the long side for a tool description and could compress the delivery-mode paragraph, but each sentence carries operational information.

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

Completeness5/5

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

With no output schema, the description carries the return-value burden and does so thoroughly: resource link, optional download_url, the download_url_unavailable explanation field, and short receipts for file/email modes. Combined with runtime expectations, expiry, and the task-handle alternative, an agent has everything needed to invoke and interpret this tool.

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 already 100%, so the baseline is 3; the description still adds real meaning by explaining the tradeoff behind as_link (context bloat vs. practicality), that email_to requires [reporting.email] plus allowed_recipients, and that save_to_file requires [reporting].output_dir and returns a path. It does not add anything for period, server, company, or hostgroupid beyond the schema, which is fine.

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?

States a specific verb and artifact ('Generate a PDF report from Zabbix monitoring data') and enumerates the four concrete report types (availability, capacity_host, capacity_network, backup), so an agent knows exactly what will be produced. It also distinguishes itself implicitly from the sibling report_get, which retrieves an existing report rather than creating one.

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?

Gives clear conditional guidance for each delivery mode: use the default link path, switch to inline base64 only for small reports, enable save_to_file or email_to only when the operator configured them, and use the tasks extension when behind a proxy with short timeouts. It does not explicitly state when to prefer report_generate over report_get or other dashboard/render siblings, which is the only missing routing cue.

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