Skip to main content
Glama

add_devices_to_group

Add specified device UUIDs to an existing group by staging the change; returns a change_id, and nothing changes until you apply it.

Instructions

Add devices to a device group. Returns a change_id; nothing changes until apply_change.

Args: group_id: The group to add devices to. device_ids: List of device UUIDs to add.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "group_id": "<group_id>",
      "device_ids": "<device_ids>"
    },
    "name": "add_devices_to_group"
  }
}

Input Schema

NameRequiredDescriptionDefault
group_idYes
device_idsYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does disclose the most consequential trait: the operation is deferred and inert until apply_change is invoked. It leaves other typical mutation concerns unstated — idempotency when a device is already in the group, permission requirements, partial-failure behavior for a list of UUIDs, and whether the change_id can be discarded.

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?

The definition is short, front-loaded with the deferred-apply constraint, and free of filler. The 'Args' block partially duplicates the schema titles, but since schema coverage is 0% that repetition is justified.

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 two-parameter staging tool with an output schema, the description covers what matters: target, input format, and the two-phase commit requirement. The output schema means the change_id return value need not be explained in depth, and remaining omissions (permissions, error modes) are secondary for this tool's complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must supply parameter meaning and it does: group_id is identified as the target group and device_ids is specified as a list of device UUIDs, which is materially more precise than the schema's bare 'Device Ids' array-of-strings title. Both required parameters are covered, leaving no ambiguity about expected value types.

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: 'Add devices to a device group.' Combined with the name, an agent can readily distinguish this from remove_devices_from_group and list_devices_in_group. It stops short of naming those siblings explicitly, so it is clear but not fully differentiated in-text.

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?

The sentence 'Returns a change_id; nothing changes until apply_change' is genuinely useful routing guidance: it tells the agent this call is a staging step that must be followed by apply_change. There is no explicit comparison against alternatives such as add_collection_members or assign_device, and no stated preconditions (e.g., group must already exist).

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