Skip to main content
Glama

roma__ListLatelyApiStatisticsV2

Retrieves per-minute call counts for a specified ROMA API over a recent duration (up to one hour) using its API, project, and instance IDs.

Instructions

[ROMA] 根据API的id和最近的一段时间查询API被调用的次数,统计周期为1分钟。查询范围一小时以内,一分钟一个样本,其样本值为一分钟内的累计值。

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

Input Schema

NameRequiredDescriptionDefault
api_idYesAPI的编号
durationYes最近统计时长,单位必须为h和m,比如1h和1m,分别代表最近1小时和最近1分钟
project_idYes项目ID,获取方式请参见API参考的“附录 > 获取项目ID”章节。
instance_idYes实例ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.5/5.0
Behavior3/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; it does disclose the sampling period, the 1-hour maximum range, and that each sample is the cumulative count within its minute, which is genuinely useful behavior beyond the schema. It omits whether this is a pure read (only implied by 查询), any rate limits, and how results are ordered or returned.

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 dense sentence that front-loads the verb and resource, then the sampling constraints. No filler, though the '[ROMA]' prefix and Chinese-only phrasing add no informational value for selection.

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 four-parameter read-only statistics query with a fully described schema and no output schema, the description supplies the decisive non-schema facts: the 1-minute bucket size and the one-hour ceiling. Only response shape and tie-in to sibling statistics tools are missing.

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%, with each of the four parameters already documented (including the duration format '1h'/'1m'), so the baseline is 3. The description only echoes that API id and a recent duration drive the query and adds no extra semantics such as timezone or rounding behavior.

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?

Names a specific verb and resource: query API invocation counts by API id over a recent window, with stated granularity of 1-minute samples. It does not differentiate itself from near-identical siblings such as apig__ListLatelyApiStatisticsV2 or roma__ListStatisticsApi, so the agent must open schemas to choose.

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 through constraints: the query range must be within one hour and produces one sample per minute. There is no explicit when-to-use or when-not-to-use guidance, no mention of the sibling statistics tools, and no statement of prerequisites such as API permissions.

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