Skip to main content
Glama
ryanmat

io.github.ryanmat/logicmonitor

by ryanmat

get_interface_metrics

Read-onlyIdempotent

Pull interface metrics (bytes, errors, discards, utilization, status) for a device interface over a time window to assess port performance; resolves interface instance before returning datapoints.

Instructions

Pull interface-level metrics (in/out bytes, errors, discards, utilization, status) for a device's interface over a time window. Answers 'how is this port performing?' Resolves the Interface-family DataSource and the instance matching the interface name before fetching datapoints.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
metricsNoComma-separated datapoint names. Defaults to RxRate, TxRate, ErrorsIn, ErrorsOut, DiscardsIn, DiscardsOut, InterfaceStatus.
device_idYesDevice ID
interfaceYesInterface name or substring (case-insensitive), e.g. 'Gi0/1', 'eth0'
hours_backNoHours of history to pull (default: 1)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.2.0

TDQS

A4.2/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 useful internal behavior—'Resolves the Interface-family DataSource and the instance matching the interface name'—which helps the agent understand how interface selection works. It does not contradict the annotations.

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?

Three short sentences with no filler. The core action and metric scope are front-loaded, the user-intent gloss is economical, and the internal resolution detail is placed at the end where it adds context without obscuring the main purpose.

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?

With fully documented parameters and comprehensive safety annotations, the description gives an agent enough to select and invoke the tool correctly. It explains the metric scope, time window, and internal resolution step. The absence of an output schema is partially mitigated by the mention of 'datapoints' and the listed metric families.

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?

Input schema coverage is 100%, with all four parameters described. The description adds some color by naming metric families and the interface-resolution behavior, but it does not substantially augment the schema. Baseline 3 is appropriate given the complete schema.

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 opens with a specific verb and resource: 'Pull interface-level metrics' for 'a device's interface over a time window.' It enumerates metric families and explicitly frames the tool as answering 'how is this port performing?', which clearly distinguishes it from list-oriented or service-level metric siblings like get_device_interfaces or get_trace_service_metrics.

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?

The description gives a clear decision context by framing the use case as 'Answers how is this port performing?' This tells the agent when the tool is appropriate. It does not explicitly name alternatives or exclusions, but the intent is unambiguous within the large sibling set.

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