Skip to main content
Glama

get_custom_controls

Retrieves custom commands and web elements for a device, including IDs to send commands or change controls.

Instructions

Получить список пользовательских команд и элементов управления.

Параметры: device_id: идентификатор устройства.

Возвращает записи двух видов (реальные разделы конфигурации):

  • kind=command — команды из раздела commands (например «Включить реле»); их id передавайте в send_custom_command;

  • kind=web_element — веб-элементы из раздела web_elements (кнопки, переключатели); их id передавайте в change_web_element.

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": {
      "device_id": "<device_id>"
    },
    "name": "get_custom_controls"
  }
}

Input Schema

NameRequiredDescriptionDefault
device_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.2

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full disclosure burden and does well: it reveals the return has two record kinds discriminated by a kind field, names the underlying config sections (commands, web_elements) and gives examples of each. It does not state whether the call is read-only in explicit terms, nor anything about permissions or pagination, which keeps it short of a 5.

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 structure is front-loaded and scannable: a one-line purpose, a parameter line, then a bulleted breakdown of the two record kinds. The dedicated 'Параметры:' block for a single obviously-named parameter is slight overhead, but nothing is genuinely wasted.

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 one-parameter read tool with an output schema present, this covers what is needed: purpose, the parameter, the shape of the results, and the follow-up tools that consume the ids. Only the origin of device_id and the read-only nature remain unstated, which are minor gaps.

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?

There is a single required parameter with 0% schema description coverage, so the description must supply meaning — but it only says 'device_id: идентификатор устройства', which essentially restates the schema title. It does not say how to obtain a device id (e.g. from get_devices) or what happens for an unknown id.

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 uses a specific verb and resource ('Получить список пользовательских команд и элементов управления') and distinguishes the tool by making clear it is the discovery endpoint for two follow-up tools (send_custom_command, change_web_element). An agent can tell this apart from get_config or get_device_state without opening a schema.

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?

It gives strong downstream guidance — the returned ids are explicitly meant to be passed to send_custom_command or change_web_element — which tells the agent exactly where this tool sits in a workflow. It stops short of stating when NOT to use it (e.g. versus get_config) or any prerequisites such as needing a valid device_id first.

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