Skip to main content
Glama
NetBeez MCP Server

NetBeez MCP Server

Official
by netbeez

get_agent_statistics

Retrieve a single agent's time-bucketed uptime and availability statistics to analyze reliability, spot disconnection patterns, or confirm consistent online status over a chosen period.

Instructions

Get agent availability/uptime statistics over time (Legacy API: GET /nb_agent_statistics.json). Returns time-bucketed uptime samples for one agent: uptime percentage (0–100), interval, and window size per bucket.

Use this to analyze agent reliability, find patterns of agent disconnections, or verify an agent has been consistently online during a period. agent_id is required (this endpoint only operates on a single agent at a time).

Time range (mutually exclusive — pick one):

  • from + to — explicit interval (epoch ms, epoch seconds, or ISO 8601; normalized to ms).

  • last — the most recent N data points.

Response: { agent_stats: [{ agent_id, id, interval, timestamp, uptime, window_size }] }

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": {
      "agent_id": "<agent_id>"
    },
    "name": "get_agent_statistics"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoEnd of the time range. Accepts Unix epoch ms, Unix epoch seconds, or ISO 8601; the client normalizes to ms. Use together with 'from'. Mutually exclusive with 'last'.
fromNoStart of the time range. Accepts Unix epoch ms, Unix epoch seconds, or ISO 8601; the client normalizes to ms. Use together with 'to'. Mutually exclusive with 'last'.
lastNoReturn the most recent N data points. Mutually exclusive with from/to.
agent_idYesAgent ID — required. The endpoint only operates on a single agent.
window_sizeNoAggregation bucket size in seconds (e.g. 60 = 1-minute buckets, 300 = 5-minute, 3600 = 1-hour).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses the single-agent restriction, the mutual exclusivity of the time-range modes, timestamp normalization to ms, the 0–100 uptime scale, and the exact response envelope. It omits auth requirements, rate limits, and any cap on the 'last' count, so it is good but not exhaustive.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the purpose and endpoint, then organized into scoped bullets for the time-range modes and a one-line response sketch. Slight redundancy where the time-range semantics duplicate the schema's own descriptions, but no filler sentences.

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 5-parameter read tool with no output schema, the description supplies the return shape inline ({ agent_stats: [...] }), the bucket field meanings, and the required-parameter constraint. It leaves open the maximum value for 'last' and any pagination or truncation behavior, which keeps it from being fully complete.

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 documents every parameter including the from/to/last exclusivity and the window_size bucketing example. The description restates the 'pick one' rule and the accepted timestamp formats, adding little beyond what the schema provides; 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: 'Get agent availability/uptime statistics over time', with the legacy endpoint named and the returned fields (uptime percentage, interval, window size) enumerated. An agent can tell this apart from sibling reads like get_agent_logs or get_agent_performance_metrics by the uptime/time-bucket framing, though those siblings are never named explicitly.

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?

Gives clear positive guidance: 'Use this to analyze agent reliability, find patterns of agent disconnections, or verify an agent has been consistently online during a period', plus the constraint that agent_id is required and only one agent is handled per call. It stops short of naming an alternative tool or stating when NOT to use it (e.g., for multi-agent or cross-fleet comparisons).

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