Skip to main content
Glama

apig__ListLatelyGroupStatisticsV2

Query total API invocation counts per minute for a specific API group over the past hour to monitor near real-time traffic and usage trends.

Instructions

[APIG] 根据API分组的编号查询该分组下所有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": {
      "group_id": "<group_id>",
      "instance_id": "<instance_id>",
      "project_id": "<project_id>"
    },
    "name": "apig__ListLatelyGroupStatisticsV2"
  }
}

Input Schema

NameRequiredDescriptionDefault
group_idYesAPI分组的编号
project_idYes项目ID,获取方式请参见[获取项目ID](apig-api-180713009.xml)。
instance_idYes实例ID,在API网关控制台的“实例信息”中获取。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does a reasonable job: it discloses the statistical period (1 minute), the maximum query window (1 hour), the sample granularity, and that each sample value is a per-minute cumulative count. It leaves out write/read safety framing, permission requirements, and behavior when the range exceeds one hour, keeping it below a 5.

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

Conciseness5/5

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

Two clauses: the first front-loads the purpose and scope, the second supplies the temporal mechanics. No redundant or filler wording, and the most important information comes first.

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 read-only statistics query with no output schema and no annotations, the description explains what is measured, the aggregation window, and the sample semantics well enough to call it correctly. It could still state the expected return shape or limits on oversized ranges, but the core context is present.

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 three parameters are already documented in the schema. The description only reinforces that group_id selects the group whose APIs are aggregated; it adds no format, syntax, or edge-case meaning beyond the schema. Baseline 3 applies.

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 states a specific verb (查询/query) and resource (total call counts across all APIs in an API group), plus the temporal aggregation unit. '该分组下所有API' clearly ties the scope to group-level aggregation, distinguishing it implicitly from per-API statistics tools. It stops short of explicitly naming the sibling it differs from, so it lands at 4 rather than 5.

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?

It gives useful usage constraints (query window within one hour, one sample per minute) but never says when to choose this over ListLatelyApiStatisticsV2 or any alternative, nor any prerequisites. Usage is only implied by the scope wording.

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