Skip to main content
Glama

Get network VPN peer history

get_network_vpn_peer_history
Read-onlyIdempotent

Retrieve one VPN peer's traffic and connection history for 24h, 7d, 30d, or 13m ranges, with rx/tx bytes and per-step connectivity status.

Instructions

Read one device's or site's traffic and connection history, oldest point first: range 24h = raw 30-second samples (kept 24 h), 7d = 10-minute points and 30d = hourly points (from per-minute rows kept 30 days), 13m = daily UTC points (from hourly rows kept 13 months). rx = bytes the VPN received from the peer, tx = bytes sent to it. For WireGuard, connected means a handshake at most 180 s old in the step. For IPsec, connected means the SA was up at the sample; its CHILD-SA rekey timestamp is not the WireGuard liveness timer. A period the VPN did not observe has no point (unknown, never 0). The endpoint IP is live only on get_network_vpn_gateway and never part of the history. Requires explicit networking:read for reads or networking:manage for changes; full/read defaults do not grant networking. The backend enforces ownership, feature availability and service 2FA locks.

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": {
      "gateway_id": "<gateway_id>",
      "peer_id": "<peer_id>",
      "range": "<range>"
    },
    "name": "get_network_vpn_peer_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
rangeYes
peer_idYesExact lowercase UUID returned by an owned networking resource
gateway_idYesExact lowercase UUID returned by an owned networking resource

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.3.17

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare readOnly/idempotent/closed-world; the description independently contributes resolution and retention per range, the precise liveness definitions for WireGuard (handshake <=180s) versus IPsec (SA up at sample, CHILD-SA rekey is not the liveness timer), the 'no point means unknown, never 0' semantics, and the explicit networking:read / networking:manage auth requirement including that full/read defaults do not grant networking. These are exactly the behavioral traits annotations cannot convey.

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 core purpose and range semantics before the finer semantics and auth notes, and nearly every clause carries distinct information. It is dense and long for a three-parameter tool, with the auth/2FA sentence trailing as a generic footer, keeping it short of a 5.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description takes on the burden of explaining return semantics and does so: point ordering, per-range resolution, rx/tx direction, and the meaning of gaps and 'connected'. Ownership and feature/2FA enforcement are also disclosed, leaving an agent nothing essential missing before calling it.

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

Parameters5/5

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

At 67% schema coverage the schema documents the two UUIDs but leaves the range enum bare; the description compensates by defining each value's sample resolution and retention window (24h=30s raw, 7d=10min, 30d=hourly, 13m=daily UTC). It also disambiguates the measurement units (rx = bytes received from peer, tx = bytes sent to peer), which nothing in the schema 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 opens with a specific verb and resource: 'Read one device's or site's traffic and connection history, oldest point first', scoping both the subject (device/site) and the ordering. It also distinguishes itself from get_network_vpn_gateway by noting the endpoint IP lives there and is 'never part of the history', so an agent can separate the two tools without opening a schema.

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?

It states a clear use context (traffic/connection history at four selectable resolutions) and gives one explicit routing rule away from the sibling get_network_vpn_gateway for endpoint IP data. It stops short of naming when-not-to-use cases beyond that, or which range to prefer for a given question, so it is clear context rather than full when/when-not guidance.

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