Skip to main content
Glama

Get Backup Stats

get_backup_stats
Read-onlyIdempotent

Summarize backup health across Oxidized nodes: counts by status, group, model, success rate, plus lists of failed, never backed up, and stale nodes. Optionally filter by group or model.

Instructions

Summarise backup health across Oxidized nodes.

Computed from the node list (oxidized-web's own stats JSON is not usable): counts per last-run status, per group and per model, the success rate, and lists of failed nodes, nodes never backed up and stale nodes. Optionally limited to one group or model, filtered by Oxidized itself.

"Stale" means Oxidized has not attempted a backup within the threshold (e.g. it is not polling the node); nodes that are attempted but keep failing are listed under failed_nodes instead. Oxidized does not expose the time of the last successful backup, and its run history is kept in memory only (reset on restart). Right after trigger_node_backup a node briefly shows as never backed up, because Oxidized clears its last run while it is queued.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
groupNoOnly include nodes in this group (exact, case-sensitive name)
modelNoOnly include nodes of this Oxidized model (e.g. 'IOS')
max_listedNoMaximum nodes listed in each of the failed/never/stale lists
stale_hoursNoReport nodes whose last backup attempt (successful or not) is older than this many hours

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

The description adds significant context beyond the readOnly/idempotent annotations: it defines 'stale' precisely (last backup attempt, not success), explains that Oxidized does not expose last successful backup time, notes that run history is in-memory and resets on restart, and warns that a node may briefly show as never backed up right after trigger_node_backup. These are critical behavioral quirks an agent must know to interpret results correctly.

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?

The description is a bit long but every sentence carries useful information. It is front-loaded with the core summary, then explains the stale definition and important caveats. While it could be trimmed slightly, the length is justified by the need to convey data-source limitations and behavioral quirks. No wasted words.

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?

Given the tool's complexity (multiple optional filters, nuanced data-source limitations) and that an output schema exists, the description covers all essential context: data source, what counts are computed, the stale definition, and known edge cases (after trigger_node_backup). The output schema handles return format, so no need to describe it. An agent has everything needed to call it correctly and interpret results.

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 all four parameters are fully documented in the schema. The description does not add parameter-specific details beyond what the schema provides; it only mentions 'optionally limited to one group or model' and clarifies the stale threshold concept, which is already in the schema. Baseline of 3 is appropriate since the schema does the heavy lifting.

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 clearly states the tool's purpose: 'Summarise backup health across Oxidized nodes.' It specifies the exact resource (backup health across nodes) and the action (summarise). It also lists the specific outputs (counts, success rate, lists of failed/never/stale nodes), distinguishing it from sibling tools that handle node listing, config retrieval, or backup triggering.

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 implicitly tells the agent when to use this tool: when backup health metrics are needed, explicitly noting that oxidized-web's own stats JSON is not usable. It does not name alternatives or give explicit when-not-to-use conditions, but the unique purpose among siblings makes the usage context clear. It also explains filtering by group/model, giving a sense of optionality.

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