Skip to main content
Glama

roma__UpdateDevice

Update ROMA device details such as name, status, tags, and description to keep registered devices current.

Instructions

[ROMA] 修改设备信息

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>",
      "device_name": "<device_name>",
      "instance_id": "<instance_id>",
      "project_id": "<project_id>",
      "status": "<status>"
    },
    "name": "roma__UpdateDevice"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNo标签
statusYes设备状态 0启用 1禁用
device_idYes设备ID
project_idYes项目ID,获取方式请参见《ROMA Connect API参考》的“附录 > 获取项目ID”章节。
descriptionNo备注
device_nameYes设备名称,支持中文、中文标点符号()。;,:“”、?《》及英文大小写、数字及英文符号()_,#.?'-@%&!, 长度2-64
instance_idYes实例ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.5/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden of behavioral disclosure. It does not state that this is a mutating operation on existing state, whether omitted parameters are preserved or cleared, what permissions the path-scoped instance_id/project_id require, or how partial updates behave. The single sentence adds nothing an agent could not already guess from the name 'UpdateDevice'.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single short front-loaded sentence with no wasted words, which is structurally clean. The brevity here reflects under-specification rather than disciplined concision, since meaningful content (mutable fields, update semantics) is simply absent.

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?

This is a mutation tool with five required parameters, no annotations, and no output schema, which is exactly the profile where the description must explain consequences and prerequisites. Instead it offers four characters of content plus a service tag, leaving an agent unable to judge side effects, partial-update behavior, or failure conditions.

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 the schema itself documents all seven parameters including the status enum (0 enabled, 1 disabled) and the device_name character set rules. The description adds no meaning beyond that, so the baseline of 3 applies, though the schema is doing all of the real work here.

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

Purpose3/5

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

The description names a specific verb ('修改' / modify) and resource ('设备信息' / device information), so the basic operation is identifiable. However, it says nothing about which device attributes are mutable or what scope of change is applied, so it is closer to a vague purpose statement than a precise one. It also does not distinguish itself from siblings such as roma__CreateDevice or roma__UpdateDeviceGroup.

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?

There is no when-to-use guidance, no prerequisites, and no mention of alternatives. An agent must infer from the name alone that this modifies an existing device rather than creating or deleting one, and nothing tells it what conditions should route it here versus to roma__UpdateDeviceGroup or roma__BatchAddDeviceToGroup.

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

Deploy Server

Other Tools