Skip to main content
Glama

workspaceapp__ShowServerMetricData

Retrieves CPU, memory, disk, network, and user online-time metrics for a specified server over a 1-hour to 30-day window, enabling performance monitoring and troubleshooting.

Instructions

[WORKSPACEAPP] 该接口可获取某一计算机在一段时间段(范围:1小时到30天)的数据信息(例如CPU占用率、内存占用率、用户的在线时间段等),最长数据保存时间不能超过180天。

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": {
      "end_time": "<end_time>",
      "project_id": "<project_id>",
      "server_id": "<server_id>",
      "start_time": "<start_time>"
    },
    "name": "workspaceapp__ShowServerMetricData"
  }
}

Input Schema

NameRequiredDescriptionDefault
end_timeYes监控结束时间:由日期加时间组成,UTC格式,例如“2021-05-11T11:45:42.000Z”。
server_idYes服务器唯一标识。
project_idYes项目唯一标识。
start_timeYes监控开始时间:由日期加时间组成,UTC格式,例如“2021-05-11T11:45:42.000Z”。
metric_nameNo监控查询指标:例如 "cpu_util",详情见下表;当metric_name为空时,为批量查询。| 指标 | 指标名称 | 测量对象 | 监控周期 || ------------------------------------- | ----------------- | ------------ | -------- || cpu_util | CPU使用率 | 弹性云服务器 | 5分钟 || mem_util | 内存使用率 | 弹性云服务器 | 5分钟 || disk_util_inband | 磁盘使用率 | 弹性云服务器 | 5分钟 || disk_read_bytes_rate | 磁盘读带宽 | 弹性云服务器 | 5分钟 || disk_write_bytes_rate | 磁盘写带宽 | 弹性云服务器 | 5分钟 || disk_read_requests_rate | 磁盘读IOPS | 弹性云服务器 | 5分钟 || disk_write_requests_rate | 磁盘写IOPS | 弹性云服务器 | 5分钟 || network_incoming_bytes_rate_inband | 带内网络流入速率 | 弹性云服务器 | 5分钟 || network_outgoing_bytes_rate_inband | 带内网络流出速率 | 弹性云服务器 | 5分钟 || network_incoming_bytes_aggregate_rate | 带外网络流入速率 | 弹性云服务器 | 5分钟 || network_outgoing_bytes_aggregate_rate | 带外网络流出速率 | 弹性云服务器 | 5分钟 |

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description must carry the full behavioral burden. It usefully discloses the permitted query window and data retention limit and shows the kinds of series returned, which goes beyond a bare restatement of the name. It does not mention permissions, whether empty metric_name triggers a bulk query (only the schema says that), or the response format.

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?

The definition is a single dense sentence with no padding; the time-range constraint and retention limit are front-loaded, and every clause carries information. The [WORKSPACEAPP] prefix is the only minor overhead.

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?

For a tool with five parameters, no annotations, and no output schema, the description covers the input constraints adequately but says nothing about the shape of the returned time-series data, units, or aggregation granularity. An agent could invoke it, but not confidently interpret the result.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3. The description adds genuine meaning beyond the schema by stating the allowed start_time/end_time span of 1 hour to 30 days and the 180-day retention horizon, which are validation constraints absent from the field definitions.

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: it retrieves metric data (CPU usage, memory usage, user online periods) for a given computer over a time range. An agent can tell it is a read/metrics operation, but it never distinguishes itself from the similarly named sibling workspaceapp__ListServerMetricData, so a 4 rather than a 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 usage constraints (the window must be 1 hour to 30 days, and retention cannot exceed 180 days), which implicitly tells the agent when a request is valid. However, it offers no guidance on choosing this tool over alternatives such as ListServerMetricData or the CES metric tools, and there is no explicit when-not-to-use statement.

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