Skip to main content
Glama

Yeelight IoT MCP Server

get_groups

获取当前用户家庭(项目)下所有的设备组或者获取某个房间下的设备组(设备组:相同设备类型的设备可以组成设备组,例如灯组、开关组灯)

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

A3.6/5.0
Behavior3/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. '获取' implies a read-only query and the scope rule per mode is stated, but it says nothing about permissions, rate limits, ordering, or pagination behavior, and return values are covered by the output schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single sentence, front-loaded with the primary action and scope, followed by a parenthetical domain definition. The parenthetical is slightly long but earns its place by disambiguating the resource; no filler.

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?

With an output schema present, return values need no explanation, and all three optional parameters are documented. The definition covers scope and the domain concept adequately; only behavioral notes like permissions or ordering are absent, which is a minor gap for a simple read tool.

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 limit, cursor, and roomId semantics are already documented in the schema, including the 'no roomId means all groups' rule. The description restates that same roomId behavior without adding format or syntax detail, so baseline 3 applies.

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 and resource ('获取...设备组') and adds a definition of what a device group is (same device type grouped, e.g. light group, switch group), which helps separate it from the sibling get_devices. It does not explicitly name or contrast a sibling tool, so it stops short of 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 Guidelines4/5

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

Clearly lays out the two usage modes: omit the room filter to get all groups under the user's home/project, or scope to a single room. That is clear context for choosing a mode, but it names no exclusions and no alternative tools (e.g. get_devices) the agent should prefer in other cases.

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.