Skip to main content
Glama

Yeelight IoT MCP Server

get_devices

获取当前用户家庭(项目)下所有的设备或者获取某个房间下的设备

Input Schema

NameRequiredDescriptionDefault
limitNo每页数量,最大不超过服务端配置上限
cursorNo分页游标;来自上一次返回的 nextCursor,首次查询可不传
roomIdNo房间ID。若不传此参数,则查询当前用户家庭(项目)下所有的设备

Output Schema

NameRequiredDescriptionDefault
rowsNo设备列表
totalYes设备总数
isErrorNo是否请求失败
pageNumYes页码
pageSizeYes每页数量
nextCursorNo下一页游标。为空表示没有下一页
errorMessageNo错误信息

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden, and it mostly duplicates the roomId schema text. It never mentions pagination, the fact that results are limited, authentication/ownership requirements, or the read-only nature beyond the weak implication of '获取'. For an unannotated tool this is thin.

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?

A single sentence, front-loaded on the resource and then the two scoping variants. No filler or repetition within the description itself.

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?

An output schema exists, so return-shape explanation is unnecessary, and all three parameters are fully documented in the schema. The remaining gap is the lack of any behavioral/edge context (pagination flow, empty results), but the definition is otherwise sufficient to call the tool correctly.

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 description coverage is 100%, so baseline is 3. The description restates the roomId scoping rule that is already fully documented in the schema and adds nothing about limit/cursor semantics, so no credit above baseline.

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 clear verb+resource ('获取...设备') and defines two explicit scopes: all devices under the user's home/project, or devices under a specific room. It does not name any sibling tool (e.g. get_rooms, get_areas) to distinguish itself, so it falls short of the 5 bar for sibling differentiation.

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 the two usage modes (room-scoped vs home-wide), which is effectively a 'when' condition, but it never says when to prefer this tool over siblings like get_rooms or get_groups, nor any prerequisites. Usage is inferable but not stated as guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.