Skip to main content
Glama
espressif

ESP RainMaker MCP Server

Official
by espressif

add_device_to_room

Add a device to a room by automatically assigning it to the parent group first, then to the target room group.

Instructions

Add a device to a room with automatic parent group handling.

This function automatically handles the ESP RainMaker hierarchy requirement:

  1. First adds the device to the parent group (e.g., "My Home")

  2. Then adds the device to the target room group (e.g., "Kitchen")

Parameters:

  • device_node_id: The node ID of the device to add

  • room_group_id: The group ID of the room to add the device to

This is a convenience function that makes the hierarchical behavior explicit.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
device_node_idYes
room_group_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations provided, so description carries full burden. It discloses the two-step process (adding to parent group then room) and mentions the underlying hierarchy requirement. It does not cover error conditions or side effects, but for a simple tool this is reasonable.

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?

The description is well-structured: a one-line summary, a multi-step explanation, and parameter definitions. Every sentence adds value; no redundancy.

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?

For a tool with 2 simple string parameters and an existing output schema, the description covers purpose, steps, and parameters adequately. It could mention error cases (e.g., missing group), but overall it is sufficiently complete.

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 has 0% description coverage. The description adds basic meaning: device_node_id is the node ID, room_group_id is the group ID. It does not provide examples, format, or additional constraints, but it compensates for the missing schema descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states that the tool adds a device to a room with automatic parent group handling, distinguishing it from siblings like create_group or get_node_details. The verb 'add' and resource 'device to room' are unambiguous.

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 explains the hierarchical behavior and positions it as a convenience function for the ESP RainMaker requirement. However, it does not explicitly state when to use this tool versus alternatives (e.g., when not to use it or when to use update_group).

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/espressif/esp-rainmaker-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server