Skip to main content
Glama

freebox_get_switch_port_stats

Retrieve bytes received/sent and error counts for a physical switch port to monitor traffic and diagnose network issues.

Instructions

Retourne les statistiques de trafic d'un port physique du switch (octets reçus/envoyés, erreurs).

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": {
      "port_id": "<port_id>"
    },
    "name": "freebox_get_switch_port_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
port_idYesNuméro du port (1-4)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full disclosure burden. It does useful work by naming what comes back (bytes received/sent, errors) and framing the call as a read ('Retourne'), but says nothing about permissions, rate limits, or the measurement window behind the counters.

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?

One sentence, front-loaded with the action and resource, with the returned fields parenthesized. Nothing extraneous and nothing buried.

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 single-parameter read tool with no output schema and no annotations, the description covers purpose, scope (one physical port) and return contents. Only secondary details like counter timeframe or error semantics are absent, which is a minor gap.

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 coverage is 100% and already documents port_id as 'Numéro du port (1-4)'. The description adds only that the port is a physical switch port, which mildly reinforces the range but gives no extra syntax or semantics. Baseline 3 applies.

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?

States a specific verb and resource in one clause: 'Retourne les statistiques de trafic d'un port physique du switch.' The qualifier 'port physique' implicitly separates it from the whole-switch sibling status tool, though that sibling is not named.

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

Usage Guidelines2/5

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

No guidance on when to reach for this per-port tool instead of freebox_get_switch_status or the general stats tools. The only cue is the parameter itself ('port_id'), leaving the agent to infer the selection rule.

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