Skip to main content
Glama

aom__ListSample

Queries AOM monitoring time-series data for a specified time range, with configurable dimensions, granularity, and statistics.

Instructions

[AOM] 该接口用于查询指定时间范围内的监控时序数据,可以通过参数指定需要查询的数据维度,数据周期等。

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": {
      "period": "<period>",
      "project_id": "<project_id>",
      "samples": "<samples>",
      "statistics": "<statistics>",
      "time_range": "<time_range>"
    },
    "name": "aom__ListSample"
  }
}

Input Schema

NameRequiredDescriptionDefault
periodYes监控数据粒度。取值范围(枚举):60(表示粒度为1分钟),300(表示粒度为5分钟),900(表示粒度为15分钟),3600(表示粒度为1小时)。
samplesYes时序数据对象列表。取值范围:JSON数组大小不超过20。
fill_valueNo用于对查询到的时序数据进行断点插值,默认值为-1。-1:断点处使用-1进行表示。0 :断点处使用0进行表示。null:断点处使用null进行表示。average:断点处使用前后邻近的有效数据的平均值进行表示,如果不存在有效数据则使用null进行表示。
project_idYes租户从IAM申请到的projectid,一般为32位字符串。
statisticsYes统计方式。取值范围:maximum,minimum,sum,average,sampleCount。
time_rangeYestimeRange用于指标查询时间范围,主要用于解决客户端时间和服务端时间不一致情况下,查询最近N分钟的数据。另可用于精确查询某一段时间的数据。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden of behavioral disclosure. It implies a read-only query, but says nothing about required IAM/project permissions, result-size limits (the 20-sample cap lives only in the schema), pagination, or what the response contains. For a complex query endpoint with zero annotation coverage this is a significant gap.

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?

A single front-loaded sentence with no filler or repetition. It is efficient, though its brevity borders on under-specification rather than tightness.

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?

With 6 parameters, 5 required, a nested samples array of objects, no output schema, and no annotations, the tool is complex enough that the description should explain how samples/statistics/time_range combine and what comes back. One generic sentence is not enough context for an agent to invoke this correctly against its query-tool siblings.

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 explains period, samples, statistics, fill_value, project_id, and time_range in detail. The description only loosely gestures at "dimensions, data period, etc." and adds no meaning beyond the structured fields, which is the expected baseline when the schema does the heavy lifting.

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 time-series data (监控时序数据) over a specified time range. That is clear and distinct from unrelated siblings such as ListAlarmRule or ListAgents. However, it does nothing to separate itself from closely related query siblings like aom__ListSeries, aom__ListMetricItems, or the Prometheus range/instant query tools.

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?

The description names no alternatives and gives no when-to-use versus when-not-to-use criteria. It only restates that a time range and dimension/period parameters exist, leaving the agent to infer how this differs from the other list/query tools in the family.

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