Skip to main content
Glama

Traffic usage

traffic_usage
Read-onlyIdempotent

Retrieve download and upload totals plus connection time for today, yesterday, this week, and this month to monitor router internet data usage.

Instructions

Internet traffic totals (download/upload and connection time) for today, yesterday, this week, this month and last month. Requires the traffic meter to be enabled.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "traffic_usage"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsNo
reveal_secretsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description adds real value beyond that by disclosing the enablement precondition and by enumerating exactly which aggregates are returned. It does not say what happens when the meter is disabled (error versus empty result), which is the main remaining gap.

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, zero padding, with the scope and returned aggregates front-loaded before the precondition. Every clause earns its place.

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?

There is no output schema, so the description correctly carries the burden of enumerating what comes back, including the metric types and time windows. What is missing is the failure mode when the meter is off and any note on units or formatting of the totals.

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

Parameters2/5

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

Schema description coverage is 0% for two parameters, and the description compensates for neither. The generic 'args' passthrough object and the 'reveal_secrets' boolean — the latter being behaviorally significant since it can expose credentials — are never mentioned, leaving the agent to guess whether any input is required.

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?

The description names a concrete resource (internet traffic totals with download/upload and connection time) and enumerates the exact time windows returned, so an agent can tell it apart from configuration siblings like set_traffic_meter and traffic_meter_settings. It stops short of explicitly naming those alternatives, so sibling differentiation is implied rather than stated.

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

Usage Guidelines3/5

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

The prerequisite 'Requires the traffic meter to be enabled' is a genuinely useful usage condition that points toward set_traffic_meter as a prerequisite step. However, there is no explicit when-to-use / when-not-to-use statement and no direct routing to traffic_meter_settings for configuration versus this tool for reporting.

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