Skip to main content
Glama
Zabbix MCP Server

Zabbix MCP Server

report_generate

Read-only

Generate PDF reports from Zabbix monitoring data for availability, host and network capacity, and backup status. Returns a download link, saved file, or email instead of the PDF itself.

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 are writes: a read-only token mails a report only when its token has report e-mail allowed, and never saves one. 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.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "report_type": "<report_type>",
      "hostgroupid": "<hostgroupid>"
    },
    "name": "report_generate"
  }
}

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.
templateNoCustom template to render the data of report_type with (an operator-made [report_templates.<name>] entry). Configured: none. Leave empty for the report type's own template.
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.5
    • addedInput schema / properties / template
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Custom template to render the data of report_type with (an operator-made [report_templates.<name>] entry). Configured: none. Leave empty for the report type's own template.",
      +  "title": "Template"
      +}
  2. Changed1 schema field changedv1.42.2
    • addedInput schema / additionalProperties
      Added value: +false
  3. First observedv1.41.0

TDQS

A3.9/5.0
Behavior2/5

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

The description is unusually generous with behavior -- return shape, `download_url_unavailable` fallback, one-hour link expiry, 5-30 s runtime, receipt contents -- but it states plainly that `save_to_file` and `email_to` 'are writes', which conflicts with the declared `readOnlyHint: true` (and mailing an attachment leans against `openWorldHint: false`). The tool's primary operation really is a read, and the description self-discloses the write paths, but the annotation and description still do not agree.

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?

Purpose and report types are front-loaded, then delivery modes, then failure modes, then runtime -- a sensible order for an agent reading top-down. It is long and restates `as_link` semantics already documented in the schema, but the length is mostly earned by genuinely non-obvious behavior.

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?

For a 9-parameter tool with no output schema, the description covers everything an agent needs: what is returned (resource link plus optional `download_url`), how to read the refusal case, how long links live, expected latency, and how to avoid holding a long HTTP request. Return values are described in prose precisely because no output schema exists.

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 the baseline is 3, and the description earns above that by adding semantics the schema lacks: link expiry timing, the `download_url_unavailable` behavior, the requirement that `email_to` addresses match `allowed_recipients` and that a read-only token can mail but never save. It does not explain `period` formats or `template` resolution beyond what the schema already says.

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

Purpose4/5

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

Opens with a specific verb and resource ('Generate a PDF report from Zabbix monitoring data') and enumerates the four supported report types, so the agent knows exactly what will be produced. It never names the obvious sibling `report_get` to contrast generate-vs-fetch, so the distinction is only implied by 'Returns a link, not the document'.

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

Usage Guidelines5/5

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

Gives explicit when-to-use for each delivery mode: default `as_link: true` keeps the PDF out of context, `as_link: false` only for small reports, `save_to_file`/`email_to` only when the operator enabled them, and the tasks extension for proxies with short timeouts. It also states what happens when a mode is not configured ('refused with a clear message'), which is the when-not side of the guidance.

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