Skip to main content
Glama
aderik

ha-automation-mcp

by aderik

delete_history_stats_sensor

Delete a history_stats sensor by name; Home Assistant restart is required to apply the change.

Instructions

Delete a history_stats sensor (HA restart required).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior3/5

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

No annotations provided, so the description carries full burden. It discloses a key behavioral trait—that an HA restart is required after deletion—which is valuable. However, it omits permissions, reversibility, and consequences beyond deletion.

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?

One efficient sentence, front-loaded with the action and a parenthetical operational note. No waste.

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

Completeness3/5

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

For a simple delete tool with one parameter, the description covers the action and the restart requirement, which are the most critical points. However, without annotations or schema descriptions, it leaves the parameter semantics and any other behavioral details (e.g., permissions) unaddressed.

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

Parameters2/5

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

Schema coverage is 0% with one required parameter 'name' and no description in the schema. The description never mentions the parameter or clarifies its format or source, so it fails to compensate for the coverage gap. Score 2 because 'name' is somewhat self-explanatory from the tool's purpose.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (delete) and resource (history_stats sensor), clearly distinguishing it from sibling operations like upsert/get/list for the same resource. However, it doesn't explicitly name any alternative, so it's a 4 rather than a 5.

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

Usage Guidelines2/5

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

No when-to-use guidance, no alternatives, no preconditions mentioned. The description only states what it does and that a restart is required.

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