Skip to main content
Glama

roma__ListDevicesInProduct

Lists the number of devices within a specified ROMA product, using the instance, product, and project IDs to return device totals for monitoring and inventory checks.

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>",
      "product_id": "<product_id>",
      "project_id": "<project_id>"
    },
    "name": "roma__ListDevicesInProduct"
  }
}

Input Schema

NameRequiredDescriptionDefault
product_idYes产品ID
project_idYes项目ID,获取方式请参见《ROMA Connect API参考》的“附录 > 获取项目ID”章节。
instance_idYes实例ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations exist, so the description carries the full burden, yet it says nothing beyond the basic purpose. It does not state whether the call is read-only (only implied by 查询), whether it returns a scalar count, nor any permission or rate-limit concerns.

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?

A single short sentence with no filler and the resource scope front-loaded. The '[ROMA]' prefix is mild noise, and the brevity tips into under-specification rather than wasted wording.

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?

For a read tool with three required path parameters and no annotations or output schema, the description leaves the critical question unanswered: whether the response is a count value or a device list. That gap matters because the tool name and description point in different directions.

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%, so instance_id, product_id, and project_id are already documented in the schema, including the pointer to the project ID appendix. The description adds no additional parameter meaning, which is acceptable at full schema coverage.

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?

The description gives a specific verb and resource: querying the number of devices inside a product. That is a distinct purpose from roma__ListDevices, but the description never says so explicitly, and the tension between the tool name (List...) and the stated 'count' purpose is left unresolved.

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?

Usage is only implied by the single-purpose phrasing. There is no statement of when to call this instead of roma__ListDevices, no prerequisites, and no note about what the three path identifiers must reference.

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