Skip to main content
Glama

Port Group Graph

port_group_graph
Read-onlyIdempotent

Plot traffic graphs for multiple ports on one chart using numeric port IDs. Compare LAG member utilization over a chosen time range.

Instructions

Render a traffic graph for one or more ports, by port ID.

Plots every supplied port on the same axes, which makes it useful for comparing members of a LAG. Unlike port_graph this takes numeric port IDs rather than interface names.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
widthNoGraph width in pixels.
heightNoGraph height in pixels.
legendNoWhether to render the graph legend.
to_timeNoEnd of the time range, either a relative offset or a Unix timestamp. Defaults to now.
port_idsYesOne or more port IDs to plot on a single graph. Resolve names to IDs with ports_search_field or device_ports.
from_timeNoStart of the time range, either a relative offset such as '-1d', '-6h' or '-1w', or a Unix timestamp. Defaults to the LibreNMS default (-1d).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.11.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is covered. The description adds meaningful behavioral context beyond annotations: it plots all supplied ports on the same axes and supports LAG comparison. This is useful but does not fully describe the output format or any rendering details.

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?

Two sentences, front-loaded with the primary action and resource, followed by a clear differentiator from the sibling tool. Every sentence earns its place with no filler or repetition of schema content.

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?

For a read-only graphing tool with six well-documented parameters and clear annotations, the description covers the essential selection and invocation context. The only notable omission is the absence of any statement about what the tool returns or how the rendered graph is delivered, but the phrase 'Render a traffic graph' gives reasonable expectation of the outcome.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already explains each parameter, including port_ids, time range, width, height, and legend. The description slightly reinforces that port IDs are numeric and that all ports share a single graph, but it does not add substantial parameter-level meaning beyond what the schema already provides.

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 states a specific action ('Render a traffic graph') on a specific resource ('one or more ports, by port ID') and immediately distinguishes itself from the closely named sibling port_graph by the input type. There is no ambiguity about what this tool does.

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?

It explicitly names port_graph as the alternative and gives the differentiating condition: this tool takes numeric port IDs rather than interface names. It also gives a concrete use case ('comparing members of a LAG'), so an agent knows when to choose this tool over its siblings.

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

Deploy Server

Other Tools