Skip to main content
Glama

Yeelight IoT MCP Server

get_areas

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

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?

No annotations are provided, so the description carries the full behavioral burden and does almost nothing with it. It says 'all areas' while the tool is actually paginated (limit/cursor), which is a mild mismatch, and it discloses nothing about permissions, ordering, or result size.

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 short, front-loaded sentence with no filler. It is efficient, though it errs toward under-specification rather than providing extra useful framing.

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

Completeness3/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 values need not be explained, and the simple read-only, zero-required-parameter nature keeps demands low. Still, for a tool sitting among several similar list siblings, the absence of any disambiguation or usage context leaves a real gap.

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% – both limit and cursor are documented in the schema itself (page size, cursor from previous nextCursor). The description adds no parameter meaning beyond that, so the 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?

Names a specific verb (获取/get) and resource (区域/areas) plus the scope (当前用户家庭/项目 – current user's home/project). However, it does not distinguish itself from the sibling get_rooms, which is the nearest related resource, so an agent cannot tell from the text alone why it would pick 'areas' over 'rooms'.

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 prerequisites, and no mention of alternatives despite several sibling list tools (get_rooms, get_groups, get_devices, get_scenes). The agent must infer usage purely from the resource noun.

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.