Skip to main content
Glama

workspace__ListMetrics

Queries Huawei Cloud Workspace metrics for a project by metric name, dimensions, and time range, with optional hourly or daily period data.

Instructions

[WORKSPACE] 查询指标。

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>",
      "metric_names": "<metric_names>",
      "project_id": "<project_id>",
      "start_time": "<start_time>"
    },
    "name": "workspace__ListMetrics"
  }
}

Input Schema

NameRequiredDescriptionDefault
dimNo指标维度 | 目前最大支持3个维度,必须从0开始;维度格式为dim.{i}=key,value,key的最大长度32,value的最大长度为256。 单维度:dim.0=instance_id,6f3c6f91-4b24-4e1b-b7d1-a94ac1cb011d 多维度:dim.0=key,value&dim.1=key,value。
periodNo数据周期 | DAY - 天级数据 HOUR - 小时级数据。
end_timeYes结束时间,UTC时间。
project_idYes项目ID。
start_timeYes开始时间, UTC时间。
metric_namesYes指标名称列表。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.3/5.0
Behavior2/5

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

No annotations are supplied, so the description must carry the full burden of explaining behavior. It does not state that the tool is read-only, or describe how the time range is interpreted, how the results are aggregated by period, or what happens when a metric name is unrecognized; beyond the verb "查询", it says nothing else.

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?

The single short sentence contains no filler, but it is under-specified rather than concise. The "[WORKSPACE]" tag prefix carries little information, and the text lacks a front-loaded statement of what the tool returns.

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?

This is a relatively complex query tool with 6 parameters, 4 of which are required; it performs time-range and dimension filtering and returns no output schema. Since the description does not indicate what is returned or give any operational caveats, it is inadequate relative to this complexity.

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 six parameters, including the dim string format, the period enum, and the UTC time format, are documented in the schema itself. The description adds no additional meaning, so the baseline score of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description only says "查询指标" (query metrics), which simply restates the tool name workspace__ListMetrics. It does not specify the scope, such as whether it queries time-series data points for given metric names within a time range, and it gives no way to distinguish this tool from siblings like workspace__ListMetricsTrend or aom__ShowMetricsData.

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 when-to-use guidance, no mention of prerequisites such as a valid project_id or metric names, and no description of when to choose an alternative tool. It only leaves the agent to infer usage from the name and 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