Skip to main content
Glama

graph_get

Retrieve and filter graphs from Zabbix using specific criteria such as graph, host, or template IDs. Outputs JSON-formatted graph data for integration and monitoring purposes.

Instructions

Get graphs from Zabbix with optional filtering.

Args: graphids: List of graph IDs to retrieve hostids: List of host IDs to filter by templateids: List of template IDs to filter by output: Output format search: Search criteria filter: Filter criteria Returns: str: JSON formatted list of graphs

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filterNo
graphidsNo
hostidsNo
outputNoextend
searchNo
templateidsNo

Implementation Reference

  • The graph_get tool handler: retrieves graphs from Zabbix API. Registered via @mcp.tool() decorator. Uses get_zabbix_client() and format_response() helpers.
    @mcp.tool() def graph_get(graphids: Optional[List[str]] = None, hostids: Optional[List[str]] = None, templateids: Optional[List[str]] = None, output: Union[str, List[str]] = "extend", search: Optional[Dict[str, str]] = None, filter: Optional[Dict[str, Any]] = None) -> str: """Get graphs from Zabbix with optional filtering. Args: graphids: List of graph IDs to retrieve hostids: List of host IDs to filter by templateids: List of template IDs to filter by output: Output format (extend or list of specific fields) search: Search criteria filter: Filter criteria Returns: str: JSON formatted list of graphs """ client = get_zabbix_client() params = {"output": output} if graphids: params["graphids"] = graphids if hostids: params["hostids"] = hostids if templateids: params["templateids"] = templateids if search: params["search"] = search if filter: params["filter"] = filter result = client.graph.get(**params) return format_response(result)

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/mpeirone/zabbix-mcp-server'

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