Skip to main content
Glama

fritz_smarthome

Read-only

Reads FRITZ!Box Smart Home devices to show switch states, temperatures, power, energy, voltage, humidity and alerts, and retrieves history series for a chosen device.

Instructions

Reads the Smart Home devices (plugs, thermostats, sensors) from the web interface, FRITZ!OS 8.20 and later: each device with AIN, name, product, connection and battery, and its units with switch state, temperature, target, power (W), energy (Wh), voltage (V), level, humidity and alerts. Call it without arguments first to find the name or AIN of a device. With history and device, returns the history of that one device instead: series of power, voltage, energy, temperature and humidity, each with interval, time of the newest value and summary; range keeps one series length and values adds the single values. Use it for consumption, temperatures and switch states; DECT handsets are in fritz_telephony, powerline adapters in fritz_powerline. If the login fails, fritz_doctor checks the access to the web interface. Logs in to the web interface and out again; changes nothing.

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

Input Schema

NameRequiredDescriptionDefault
rangeNoOnly the series of one length: `hours`, `days` or `months`. Default: all. Needs `history`.
deviceNoThe device: its name, exact or else ignoring case, or its AIN with or without spaces, as listed without `history`, e.g. `Kühlschrank` or `11657 0123456`. Needs `history`.
valuesNoAlso all values of each series, the newest first, null for gaps. Only with `history`; each series has its summary anyway.
historyNoThe history of `device` instead of the current values of all devices: power (W) and voltage (V) over the last hours, energy (Wh) per day and per month, temperature (°C) and humidity (%), each as a series with its interval in seconds, the time of the newest value (Unix seconds) and a summary (count, gaps, min, avg, max, and the sum for energy).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.1.3
    • changedInput schema / properties / device / description
      Previous value: -"The device, by name or AIN. Needs `history`."New value: +"The device: its name, exact or else ignoring case, or its AIN with or\nwithout spaces, as listed without `history`, e.g. `Kühlschrank` or\n`11657 0123456`. Needs `history`."
    • changedInput schema / properties / range / description
      Previous value: -"Only the series of `hours`, `days` or `months`. Default: all.\nNeeds `history`."New value: +"Only the series of one length: `hours`, `days` or\n`months`. Default: all. Needs `history`."
    • changedInput schema / properties / values / description
      Previous value: -"Also all values of each series, the newest first, null for gaps."New value: +"Also all values of each series, the newest first, null for gaps.\nOnly with `history`; each series has its summary anyway."
  2. Changed1 schema field changedv0.1.1
    • changedInput schema / properties / range / description
      Previous value: -"Only `hours`, `days` or `months`."New value: +"Only the series of `hours`, `days` or `months`. Default: all.\nNeeds `history`."
  3. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, but the description still adds real behavioral context: it requires FRITZ!OS 8.20 or later, it logs in and out of the web interface, it explicitly changes nothing, and it points to fritz_doctor when login fails. The one gap is that it doesn't mention latency or whether repeated logins have side effects, but the auth and no-mutation disclosure is substantive beyond the annotations.

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 purpose and the discovery instruction are front-loaded, and every sentence carries information. It is a dense single block with long enumerations of fields, which is close to the limit but is purposeful rather than padded; light paragraph breaks around the history mode would improve scanability.

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, this description must explain return values itself, and it does: current mode returns per-device fields and per-unit readings, history mode returns series of power, voltage, energy, temperature and humidity each with interval, newest-value timestamp and summary statistics. Nothing an agent needs to call this correctly appears to be 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 the baseline is 3, but the description adds cross-parameter meaning the schema only hints at: the default no-arg call lists all devices, whereas `history` + `device` flips the tool into single-device history mode, with `range` selecting one series length and `values` expanding to individual points. That mode-switching semantics is the key thing an agent needs and it is stated plainly.

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 ('Reads the Smart Home devices') and enumerates the device types and the fields returned (AIN, name, product, connection, battery, plus per-unit switch state, temperature, power, energy, voltage, level, humidity, alerts). It also explicitly separates itself from siblings by naming fritz_telephony for DECT handsets and fritz_powerline for powerline adapters.

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

Usage Guidelines5/5

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

It gives a concrete first-step instruction ('Call it without arguments first to find the name or AIN of a device'), states the condition that switches modes ('With `history` and `device`, returns the history of that one device instead'), and routes the agent elsewhere for handset data, powerline data, and login failures via fritz_doctor. When-to-use and when-to-use-something-else are both covered.

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