Skip to main content
Glama

ces__ListNotificationMasks

Queries up to 100 notification masking rules by relation type and IDs, with optional filters for name, status, namespace, metric, dimensions, sorting, and pagination.

Instructions

[CES] 批量查询指定类型的通知屏蔽规则,目前最多支持100个通知屏蔽规则的批量查询。

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>",
      "relation_ids": "<relation_ids>",
      "relation_type": "<relation_type>"
    },
    "name": "ces__ListNotificationMasks"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo分页大小
offsetNo分页偏移量
mask_idNo屏蔽规则ID,可选
sort_dirNo排序顺序,与sort_key同时使用。DESC表示降序排序;ASC表示升序排序;
sort_keyNo排序关键字,与sort_dir同时使用。
mask_nameNo屏蔽规则名称,可选,只能为字母、数字、汉字、-、_,最大长度为64
namespaceNo查询服务的命名空间,各服务命名空间请参考“[服务命名空间](ces_03_0059.xml)”
dimensionsNo资源的维度信息
project_idYes租户ID
mask_statusNo屏蔽状态,可选。MASK_EFFECTIVE:已生效,MASK_INEFFECTIVE:未生效。
metric_nameNo资源的监控指标名称,必须以字母开头,只能包含0-9/a-z/A-Z/_,字符长度最短为1,最大为64;如:弹性云服务器中的监控指标cpu_util,表示弹性服务器的CPU使用率;文档数据库中的指标mongo001_command_ps,表示command执行频率;各服务的指标名称可查看:“[服务指标名称](ces_03_0059.xml)”。
resource_idNo资源维度值,提供一个维度的资源ID即可,可选
relation_idsYes关联编号(目前是告警规则ID)
relation_typeYes关联类型。ALARM_RULE:关联告警规则,RESOURCE:关联资源,RESOURCE_POLICY_NOTIFICATION:关联资源策略屏蔽告警通知,RESOURCE_POLICY_ALARM:关联资源策略不计算告警,DEFAULT:默认包含RESOURCE、RESOURCE_POLICY_NOTIFICATION(查询告警屏蔽列表时使用)。
resource_levelNodimension: 子维度,product: 云产品

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 disclosure. It implies a read-only batch lookup and repeats the 100-item cap (already encoded as maxItems=100 in the schema), but says nothing about required permissions, whether pagination via limit/offset is expected, default sort behavior, or what happens with zero matches.

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, but it is under-specified rather than genuinely tight, and it repeats the phrase '通知屏蔽规则' twice within the same clause. The bracketed '[CES]' prefix is a namespace tag that adds no selection value.

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 15-parameter tool with nested objects, five enums, and no annotations or output schema. The description omits the required-parameter set, the pagination and sorting contract, and any hint of the response shape, leaving the agent to reconstruct all of that from the schema alone.

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 every one of the 15 parameters, including the nested dimensions and relation_ids items, is already documented in the schema. The description adds no meaning beyond what the schema provides; the 100-item figure merely restates maxItems. Baseline 3 applies 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?

States a specific verb+resource: batch query notification mask rules, with a scope limit of 100. The verb 'query' separates it from sibling write operations such as BatchDeleteNotificationMasks and BatchUpdateNotificationMasks. However, '指定类型' (specified type) is not named — the reader must open the schema to learn it is relation_type — and no sibling is explicitly named as an alternative.

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 gives no when-to-use guidance, no exclusions, and no mention of alternatives such as ListNotificationMaskResources for the resource side of a mask. It also does not state the prerequisites that relation_ids and relation_type are mandatory, so an agent learns that only from the 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