MijiaPilot - 米家 x MCP x AI Agent x HomeKit 全桥接智能家居平台
This server has reasonable naming consistency and decent parameter documentation, but falls short on critical dimensions. All 12 tools are explicitly registered with @mcp.tool() decorators in mcp_server/server.py, and all have descriptions (though several are brief). However, there are systematic gaps in schema completeness, output documentation, and error handling. Parameter descriptions exist but lack constraints (enums, ranges, format specs). Output schemas are entirely undocumented, LLMs have no idea what fields to expect from responses. Error handling is absent; the code simply returns resp.json() with no guidance on what to do if a call fails. The tool set is well-composed (single responsibilities, good naming with verb prefixes), but the interface quality suffers from incomplete documentation.
查询蓝牙传感器的历史温湿度读数,用于趋势分析。
获取蓝牙传感器的最新温湿度数据和设备详情。
获取设备详情,包含设备规格、可用属性列表和动作列表。
获取家庭详情,包含该家庭下的所有设备列表。
读取设备属性值,例如灯光亮度、空调温度、开关状态等。
列出所有已注册的蓝牙传感器设备,返回设备信息和最新温湿度读数。
列出所有米家智能设备。返回设备ID、名称、型号、在线状态等信息。
No output schemas documented. LLMs cannot infer response structure or plan downstream tool chains.
No error handling or recovery guidance. Code returns resp.json() with no fallback for HTTP errors, timeouts, or network failures. LLMs receive raw API errors with no actionable next steps.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 59 | 2026-07-28+ | v2 |
列出所有家庭及其设备概览。
列出所有米家场景。
执行设备动作,例如扫地机开始清扫、播放音乐等。
执行一个米家场景,触发该场景中预设的所有设备操作。
设置设备属性值,用于控制设备。例如开灯、调亮度、设温度等。
Parameter constraints missing. 'home_id' accepts any string with no format/pattern guidance. 'hours' and 'limit' in get_ble_readings have no min/max bounds, LLMs could pass -1 or 999999. Use enum/pattern/minValue/maxValue in schema.
No pagination documentation. list_devices, list_scenes, list_homes return no limit/offset/next_cursor parameters. If 1000+ devices exist, LLMs have no way to retrieve them in batches, risking context window exhaustion.
Descriptions are generic and under-optimized for LLM selection. E.g., 'get_device' says 'Get device details' but does not explain WHEN to use it vs list_devices, or that it reveals available properties and actions for use with get/set_property and run_action.
run_action 'value' parameter typed as 'object' with no structure guidance. LLMs do not know what keys/fields the action expects. Provide examples or link to get_device output which lists action schemas.
set_property 'value' parameter accepts 'any' type. No schema hint on whether it should be bool, int, string, etc. Parameter description says 'type depends on property' but gives no way for the LLM to discover valid types without trial-and-error.