Skip to main content
Glama

workspaceapp__ListServerMetricData

Queries monitoring data for a specified server metric over a time range, letting you choose aggregation method and data granularity for performance analysis.

Instructions

[WORKSPACEAPP] 查询指定时间范围指定指标的指定粒度的监控数据,可以通过参数指定需要查询的数据维度。

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": {
      "filter": "<filter>",
      "from": "<from>",
      "metric_name": "<metric_name>",
      "namespace": "<namespace>",
      "period": "<period>",
      "project_id": "<project_id>",
      "server_id": "<server_id>",
      "to": "<to>"
    },
    "name": "workspaceapp__ListServerMetricData"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYes查询数据截止时间UNIX时间戳,单位毫秒。from必须小于to。
fromYes查询数据起始时间,UNIX时间戳,单位毫秒。
filterYes数据聚合方式,支持的聚合方式如下: - average:聚合周期内指标数据的平均值。 - max:聚合周期内指标数据的最大值。 - min:聚合周期内指标数据的最小值。 - sum:聚合周期内指标数据的求和值。 - variance:聚合周期内指标数据的方差。
periodYes监控数据粒度。 取值范围: - 1: 实时数据。 - 300: 5分钟粒度。 - 1200: 20分钟粒度。 - 3600: 1小时粒度。 - 14400: 4小时粒度。 - 86400: 1天粒度。
namespaceYes服务的命名空间:例如 "SYS.ECS/AGT.ECS",当namespace为AGT.ECS,则查询GPU监控指标: - SYS.ECS:弹性云服务器的基础监控指标。 - AGT.ECS:弹性云服务器操作系统监控的监控指标(GPU指标)。
server_idYes服务器唯一标识。
project_idYes项目唯一标识。
metric_nameYes监控查询指标名称: - SYS.ECS命名空间的指标名称,请参考帮助文档:“[弹性云服务器支持的基础监控指标](https://support.huaweicloud.com/usermanual-ecs/ecs_03_1002.html)”。 - AGT.ECS命名空间的指标名称,请参考帮助文档:“[操作系统监控指标:GPU](https://support.huaweicloud.com/usermanual-ecs/ecs_03_1003.html#section11)”。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.2/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 burden of behavioral disclosure. It states that the tool queries data but does not describe permissions, limits, return shape, pagination, or any operational behavior beyond the basic read operation.

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?

The description is a single compact sentence with no obvious redundancy. The '[WORKSPACEAPP]' prefix is noise, but the core purpose is front-loaded and easy to parse.

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

Completeness3/5

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

The tool has eight required parameters, no annotations, and no output schema. The input schema is very rich, but the description does not explain the return format or how this differs from sibling metric-query tools, leaving some contextual gaps.

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 the schema already documents all eight parameters in detail, including time format, supported filters, periods, and namespaces. The description adds only a generic mention of specifying query dimensions via parameters and does not add meaning beyond the schema.

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 and resource: querying monitoring data for a specified metric, time range, and granularity. It is clear what the tool does, but it does not distinguish itself from the sibling ShowServerMetricData, which likely covers similar metric-reading behavior.

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 implied by the query scope: use it when you need monitoring data over a time range at a chosen granularity. However, there is no explicit guidance on when to choose this tool versus ShowServerMetricData or other metric tools, and no prerequisites or exclusions are stated.

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