Skip to main content
Glama

roma__ListStatisticsApi

Retrieve API usage statistics for a Huawei Cloud ROMA instance by instance ID, with filters for time range, cycle, and query mode such as instance, app, or specific API.

Instructions

[ROMA] 查询某个实例下的API统计信息。

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__ListStatisticsApi"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNo查询模式,默认为INSTANCEINSTANCE
cycleNo查询统计周期minute
api_idNoAPI编号,查询模式为API时必填
durationNo统计时长格式:整数+单位(m、h),m:分钟,h:小时,可支持小时与分钟的组合。例如:1h或2h45m
end_timeNo结束时间,格式:2020-06-18 23:00:00
project_idYes项目ID,获取方式请参见API参考的“附录 > 获取项目ID”章节。
start_timeNo开始时间,格式:2020-06-18 10:00:01
instance_idYes实例ID
roma_app_idNo集成应用编号,查询模式为APP时必填

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden, and it discloses almost nothing. It never states that this is a read-only query, how start_time/end_time/duration interact, what happens with default cycle/minute, or what the response contains (no output schema exists).

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?

A single sentence with no filler and a front-loaded resource name, but the '[ROMA]' prefix consumes attention without adding information and the sentence is too thin for a 9-parameter tool.

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 9-parameter tool with mode-dependent required fields, time-range semantics and no output schema, one sentence is inadequate. The agent gets no model of what the returned statistics look like or how the mode/cycle/time parameters combine to shape the result.

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 all 9 parameters including enums and formats are already documented in the schema. The description adds no meaning beyond that, which is the baseline-3 case rather than a strength.

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 names a clear verb and resource ('查询...API统计信息') scoped to an instance, so an agent knows this returns statistics for APIs under one instance. It does not distinguish itself from the near-identical sibling roma__ListLatelyApiStatisticsV2, leaving ambiguity about which statistics tool to pick.

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 guidance on when to use this tool versus the closely related ListLatelyApiStatisticsV2 sibling, nor on prerequisites such as which mode to pick or that api_id/roma_app_id become mandatory for API/APP modes. Usage must be inferred entirely from the schema.

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