Skip to main content
Glama
jiayunlimailutorontoca

mijia-home-mcp

query_history

Read-only

Query local event history of smart home devices to answer questions about past events, such as door openings or appliance status changes.

Instructions

查询本地事件历史,回答"今天门开过几次""洗衣机几点跑完"这类问题。

事件在 mijia-home-mcp watch 运行期间、以及每次 get_home_changes 调用时记录,保留 30 天;记录之外的时段没有数据。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
propNo属性名过滤,支持 glob(如 "door-state")。
limitNo最多返回条数,默认 100,上限 500。
sinceNo起始时间(ISO 格式,如 2026-07-12T14:00);默认 24 小时前。
untilNo截止时间;默认现在。
deviceNo设备名过滤,支持 glob(如 "门锁*")。
event_typeNo事件类型过滤。

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Annotations already indicate readOnlyHint and openWorldHint. The description adds valuable behavioral details: events are recorded only during specific operations and retained for 30 days, which goes beyond the annotations. No contradiction.

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 brief and efficient: two sentences that capture purpose, usage, and data availability. It is front-loaded with the main verb and resource, then provides essential context. Every sentence earns its place.

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?

Given that an output schema exists, the description does not need to detail return values. It sufficiently covers behavior (data source, retention) and usage context (event types). For a query tool, this is comprehensive.

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%, so baseline is 3. The description does not add significant new meaning about individual parameters beyond what the schema provides, but the overall context (e.g., event recording conditions) indirectly informs parameter use.

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 'Query local event history' and provides concrete example questions ('Did the door open today?', 'When did the washing machine finish?'), making the tool's purpose immediately understandable. It differentiates from siblings like get_device_status by focusing on historical events.

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 explains when data is available (during 'mijia-home-mcp watch' runtime and get_home_changes calls) and retention (30 days), guiding appropriate use. It does not explicitly state when not to use, but the context is clear enough.

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/jiayunlimailutorontoca/mijia-home-mcp'

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