Skip to main content
Glama

Yeelight IoT MCP Server

get_rooms

获取当前用户家庭(项目)下所有的房间

Input Schema

NameRequiredDescriptionDefault
limitNo每页数量,最大不超过服务端配置上限
cursorNo分页游标;来自上一次返回的 nextCursor,首次查询可不传

Output Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full burden. It implicitly indicates a read operation but does not disclose pagination behavior (the 'all' claim is misleading given limit/cursor), auth requirements, rate limits, or side effects. Minimal behavioral context.

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 with no wasted words. It is appropriately front-loaded, though its brevity leaves gaps that other dimensions address.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a paginated list tool with no annotations and an output schema, the description should at least mention pagination or usage context. It covers scope but omits pagination, alternatives, and behavioral traits, making it incomplete.

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% and both parameters are documented in the schema. The description adds no parameter-level detail, so the baseline of 3 is appropriate.

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 '房间', with scope '当前用户家庭(项目)下'. This distinguishes it from siblings like get_areas and get_devices by resource. However, it does not explicitly name alternatives or explain how it differs from similar list tools, so it is clear but not maximally differentiated.

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

Usage Guidelines2/5

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

No when-to-use guidance, no alternatives, no exclusions. It only describes what the tool does, leaving the agent to infer when to call it versus get_areas or get_devices.

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.