Skip to main content
Glama
adrighem

Domoticz MCP Server

by adrighem

Get weekly energy history

get_weekly_energy_history
Read-onlyIdempotent

Retrieve the past 7 days of counter history for any Domoticz device by providing its idx or name.

Instructions

Read the last 7 days of counter history. Preferred: idx.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idxNoNumeric Domoticz idx; preferred over name when known
nameNoCase-insensitive Domoticz entity name

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idxYesResolved device idx
NameNoResolved device name
rangeYesDomoticz graph range sent upstream
titleNoOptional Domoticz response title
periodYesRequested history period
resultYesNormalized history samples
statusYesStatus returned by Domoticz, normally OK
summaryYesAggregate statistics for the returned samples
include_instantaneousYesWhether instantaneous samples were requested

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.4.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is fully covered. The description adds the 7-day window and the idx preference but does not describe other behavioral details, which is acceptable given the output schema and annotations.

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

Conciseness5/5

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

Two short sentences convey the operation and key parameter guidance with no filler. The action and scope are front-loaded, and every word earns its place.

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?

Between annotations, full schema coverage, and output schema, the description covers selection and invocation needs. A minor gap is not explaining what a 'counter' is, but the title and schema make it recoverable.

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 descriptions already document both idx and name, including the 'preferred over name' guidance, making schema coverage 100%. The description's 'Preferred: idx' restates the schema rather than adding new meaning.

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 action ('Read') and resource ('last 7 days of counter history'), which clearly differentiates from daily/monthly siblings by time window. The scope is immediately understandable without opening 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?

The description makes the temporal scope explicit, so an agent can route weekly requests here vs daily/monthly alternatives. It does not explicitly name alternatives or exclusions, but the context is sufficient.

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