Skip to main content
Glama
jarahkon

hass-mcp-server

by jarahkon

ha_get_history

Fetch historical state data for any Home Assistant entity over custom time intervals using ISO 8601 timestamps.

Instructions

Get the state history for an entity over a time period

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
entity_idYesEntity ID to get history for
start_timeNoISO 8601 start time (e.g. '2025-01-01T00:00:00Z'). Defaults to 1 day ago.
end_timeNoISO 8601 end time. Defaults to now.
Behavior2/5

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

No annotations are provided, so the description must fully convey behavioral traits. It mentions 'over a time period' but lacks details on return format, pagination, limits, or read-only nature.

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?

The description is a single sentence with 12 words, front-loaded with the key information, and contains no冗余 or unnecessary details.

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?

The description adequately explains the tool's purpose for a simple history retrieval, but without an output schema or additional behavioral context, it leaves gaps about the return structure and potential constraints.

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 coverage is 100% (all parameters have descriptions). The description adds value by reinforcing the temporal aspect ('over a time period') that connects start_time and end_time, but does not provide significant additional meaning beyond the schema.

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 verb 'Get' and the resource 'state history for an entity over a time period', which distinguishes it from sibling tools like ha_get_states (current state) and ha_get_entity (entity info).

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

Usage Guidelines3/5

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

The description implies usage for historical data but does not explicitly state when to use this tool versus alternatives like ha_get_states or mention potential performance considerations for large time ranges.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jarahkon/hass-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server