Skip to main content
Glama

roma__ListDevices

Queries ROMA devices by instance and project, with optional filters for product, node, online status, tags, and creation time to locate and page through connected devices.

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": {
      "instance_id": "<instance_id>",
      "project_id": "<project_id>"
    },
    "name": "roma__ListDevices"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagNo标签
limitNo每页显示条目数量,最大数量999,超过999后只返回999
app_idNo应用ID
offsetNo偏移量,表示从此偏移量开始查询, offset大于等于0
node_idNo设备物理编号,通常使用MAC或者IMEI号,支持英文大小写,数字,下划线和中划线,长度2-64
client_idNo设备客户端ID,平台生成的设备唯一标识
node_typeNo节点类型 0-直连 1-网关 2-子设备,不传默认查询所有
product_idNo设备归属的产品ID
project_idYes项目ID,获取方式请参见《ROMA Connect API参考》的“附录 > 获取项目ID”章节。
device_nameNo设备名称,支持中文、中文标点符号()。;,:“”、?《》及英文大小写、数字及英文符号()_,#.?'-@%&!, 长度2-64
instance_idYes实例ID
product_nameNo设备归属的产品名称
online_statusNo是否在线 0-未连接 1-在线 2-离线,支持传入多个值以逗号分隔
created_date_endNo创建时间截止,格式timestamp(ms),使用UTC时区
created_date_startNo创建时间起始,格式timestamp(ms),使用UTC时区

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

D1.9/5.0
Behavior1/5

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

No annotations are provided, so the description carries the full burden, yet it discloses nothing: not that this is a read-only paginated list, not the default page size of 10 or the 999 cap, and not what a response contains. An agent has no confirmation from the description that this operation is safe and non-mutating.

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

Conciseness2/5

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

The text is five words long with a product prefix and no structure. Brevity here reflects under-specification rather than economy, since the tool has 15 parameters and meaningful filtering behavior that goes unmentioned.

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

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 15-parameter list endpoint with no annotations and no output schema, the description should explain scope, pagination defaults, and the relationship to the product-scoped sibling. None of that is present, leaving the definition inadequate for correct tool selection.

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% across all 15 parameters, including filters (node_type, online_status, created_date_start/end), pagination (limit, offset), and path parameters. The description adds no meaning beyond the schema, so the baseline of 3 applies.

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

Purpose2/5

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

The description is "[ROMA] 查询设备" (query devices), which essentially restates the tool name ListDevices with a bracketed product prefix. It gives no information about scope (project/instance-level listing) and does nothing to separate this tool from the sibling roma__ListDevicesInProduct, which appears to be a narrower variant of the same operation.

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 mention of prerequisites (instance_id and project_id are required), and no pointer to the sibling listing tool for product-scoped queries. An agent must infer entirely from the name that this is the general-purpose device listing endpoint.

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