Skip to main content
Glama

workspace__ListMetricsTrend

Retrieves metric trend data over a specified time range for selected workspace metrics and dimensions, helping you analyze changes and monitor resource behavior using configurable periods.

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__ListMetricsTrend"
  }
}

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数据周期 | MIN - 分钟级 5MIN - 5分钟级 DAY - 天级数据 HOUR - 小时级数据。
end_timeYes结束时间。
project_idYes项目ID。
start_timeYes开始时间。
metric_namesYes指标名称列表。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.3/5.0
Behavior1/5

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

No annotations are supplied, so the description carries the full behavioral burden, yet it discloses nothing: it does not say whether this is read-only, what permissions or scopes the project_id requires, how large time ranges are handled, or what the response looks like. The single sentence essentially restates the tool name and adds no behavioral context for a six-parameter query tool.

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 description is a single short sentence with a workspace tag prefix, so there is no wasted wording, but it is under-specified rather than genuinely concise. Brevity here reflects missing content, not disciplined editing.

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?

For a tool with six parameters, an enum-backed period field, and complex dimension syntax, a four-word description is inadequate: nothing explains how period interacts with the time window or how metric_names should be paired. The rich schema mitigates this somewhat, but the definition still leaves an agent without the context needed to invoke it confidently.

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 dim, period, start_time, end_time, project_id, and metric_names all documented in the schema itself, so the baseline of 3 applies. The description adds no interpretation beyond the schema, but it does not need to compensate for any coverage gap.

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

Purpose3/5

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

The description states a verb and resource ("查询指标趋势" / query metric trend), which is more than a tautology, but it does not clarify how the result differs from sibling listing tools such as workspace__ListMetrics or apm__ShowTrend. An agent sees a metrics-trending tool but gets no signal about scope, granularity, or when this specific variant applies.

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 time-window constraints, and no pointer to alternative tools for related metric queries. An agent must infer the usage context entirely from the schema's required fields.

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