Skip to main content
Glama

aom__ListMetricItems

Queries the metrics available for monitoring in AOM, filtered by namespace, metric name, dimensions, or resource ID, with pagination controls for start position and result limit.

Instructions

[AOM] 该接口用于查询系统当前可监控的指标列表,可以指定指标命名空间、指标名称、维度、所属资源的编号(格式为:resType_resId),分页查询的起始位置和返回的最大记录条数。

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": {
      "project_id": "<project_id>"
    },
    "name": "aom__ListMetricItems"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNo指标查询方式。
limitNo用于限制本次返回的结果数据条数。
startNo分页查询起始位置,为非负整数。
project_idYes租户从IAM申请到的projectid,一般为32位字符串。
inventoryIdNo资源编号,格式为resType_resId。其中resType部分的枚举值为:host,application,instance, container,process,network,storage, volume。当URI参数中的type取值为“inventory”时,通过该参数查询关联的指标,不再使用metricItems数组中的信息。
metricItemsNo当URI参数中的type取值不为“inventory”时,就通过该数组传递的参数信息进行指标查询。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description must carry behavioral disclosure. The verb '查询' establishes a non-mutating read and paging is mentioned (start position, max records), which is useful, but there is no statement about default paging values, maximum limits, permission requirements, or what the result set looks like.

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 that declares purpose first, then enumerates the optional filters. It is dense but not padded; nothing is redundant, though the run-on enumeration of filters is slightly harder to parse than a structured list.

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 6-parameter list tool with full schema coverage and no output schema, the description covers purpose and filter scope adequately. However, it omits the type-dependent branching between inventoryId and metricItems (documented only in the schema), paging defaults, and any hint about the shape of returned items, leaving some 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 every parameter in detail, including the inventoryId format and namespace enum values. The description only enumerates the same filters at a high level (namespace, metric name, dimensions, resType_resId, start, limit) without adding new semantics, so the baseline of 3 applies.

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 clearly establishes a specific verb and resource: it queries ('查询') the list of currently monitorable metric items ('可监控的指标列表'). An agent can tell this is a metrics catalog/discovery read, distinct from adding metric data or alarm-rule tools. It stops short of explicitly naming a sibling it is not, which keeps it at 4 rather than 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?

Usage is only implied by the purpose statement and the list of allowed filters; there is no explicit 'use this when…' or 'do not use this for…' guidance, and no alternatives are named even though siblings like ListLogItems or BatchListMetricData exist. An agent can infer the discovery use case but must reason about it.

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