Skip to main content
Glama

history_anomalies

Read-only

Detects gradual DSL and device anomalies by comparing recent FRITZ!Box measurement data with prior days, flagging declining margin, lower sync rates, rising errors, reconnects, and dropouts.

Instructions

[Stufe: read] Anomalie-Erkennung auf der lokalen Messreihe (keine Box-Abfrage): schleichende Verschlechterung – sinkende DSL-Störabstandsmarge (Trend + Prognose), niedrigere Sync-Rate, schneller wachsende Fehlerzähler, gehäufte Neuverbindungen, häufigere Geräteabbrüche, Geräte, die regelmäßig kurz wegfallen. Vergleicht die letzten recent_hours mit den Tagen davor; zu wenig Daten = 'insufficient_data'. Befunde erscheinen auch in network_doctor und alarms_check.

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": "history_anomalies"
  }
}

Input Schema

NameRequiredDescriptionDefault
boxNoName der FRITZ!Box bei Mehrbox-Betrieb (Standard: erste Box, siehe server_status)
daysNoBetrachteter Zeitraum in Tagen rückwärts (Standard 14)
recent_hoursNoAktueller Zeitraum in Stunden, der mit den Tagen davor verglichen wird

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.2

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, non-destructive, closed-world), so the bar is lower. The description still adds real behavioral context by disclosing that no live box query is performed, that the result depends on comparison windows, and that a sentinel value 'insufficient_data' may be returned instead of findings.

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 tier marker and the purpose, then the detection targets, then the comparison mechanics and the failure mode. The anomaly enumeration is long but each item is a distinct detection class, so little is wasted, though the run-on line breaks make it denser than necessary.

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?

An output schema exists, so return-value structure need not be described, and the description still flags the one return case an agent must handle ('insufficient_data'). For a read-only, three-parameter diagnostic tool with full schema coverage, this is essentially complete; only explicit sibling routing is missing.

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

Parameters4/5

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

Schema coverage is 100%, so all three parameters are already documented, which sets a baseline of 3. The description goes beyond that by explaining the relationship between two of them: recent_hours is the current window compared against the days before it, which is the key semantic the schema states only separately for each parameter.

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?

States a specific verb+resource: anomaly detection over the local measurement series, and immediately clarifies the scope with '(keine Box-Abfrage)'. It then enumerates the concrete anomaly classes it detects (declining SNR margin, lower sync rate, faster-growing error counters, reconnects, device dropouts), which an agent can match against a user request without reading the 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?

Gives clear operating context: it compares the last recent_hours against the preceding days, and returns 'insufficient_data' when there is too little history. It also tells the agent that findings surface in network_doctor and alarms_check, which hints at overlap, but it never says explicitly when to pick this tool over those two, leaving the routing decision partly to inference.

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