Skip to main content
Glama

ces__BatchUpdateNotificationMasks

Batch update CES alarm notification masks to suppress alerts during planned maintenance or defined time windows using start/end, permanent, or recurring cycle rules.

Instructions

[CES] 批量设置告警通知屏蔽规则

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": {
      "mask_type": "<mask_type>",
      "project_id": "<project_id>",
      "relation_ids": "<relation_ids>",
      "relation_type": "<relation_type>"
    },
    "name": "ces__BatchUpdateNotificationMasks"
  }
}

Input Schema

NameRequiredDescriptionDefault
end_dateNo屏蔽截止日期,yyyy-MM-dd。
end_timeNo屏蔽截止时间,HH:mm:ss。
mask_nameNo屏蔽规则名称
mask_typeYes屏蔽类型。START_END_TIME:按起止时间屏蔽,FOREVER_TIME:永久时间屏蔽,CYCLE_TIME:按周期时间屏蔽。
resourcesNo关联资源,relation_type为RESOURCE、RESOURCE_POLICY_NOTIFICATION、RESOURCE_POLICY_ALARM时填屏蔽的资源信息;
project_idYes租户ID
start_dateNo屏蔽起始日期,yyyy-MM-dd。
start_timeNo屏蔽起始时间,HH:mm:ss。
metric_namesNo关联指标名称,relation_type为RESOURCE可选填,不填视为对资源所有指标进行告警屏蔽
product_nameNo资源为云产品时的云产品名称
relation_idsYes关联编号,relation_type为ALARM_RULE时填屏蔽的告警规则ID;relation_type为RESOURCE_POLICY_NOTIFICATION、RESOURCE_POLICY_ALARM时填屏蔽的告警策略ID;
relation_typeYes关联类型
resource_levelNodimension: 子维度,product: 云产品
product_metricsNo按云产品维度屏蔽时的指标信息

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

D1.9/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 burden of behavioral disclosure, and it discloses nothing. For a batch mutation over 14 parameters with nested objects, it does not state whether existing masks are overwritten, what permissions or project scoping are required, whether the operation is atomic, or what happens on partial failure.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single short phrase contains no wasted words, but its brevity reflects under-specification rather than economy. There is no front-loaded statement of effect or scope beyond the tool name.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 14 parameters, 4 required, nested objects, 3 enums, no output schema, and no annotations, the definition is wholly inadequate for an agent to call this mutation safely. Nothing explains the conditional relationships among mask_type, relation_type, resources, and product_metrics that determine a valid call.

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 parameter including the enums for mask_type and relation_type is documented in the schema itself, which sets the baseline at 3. The description adds no meaning beyond the schema and does not clarify how the interdependent fields (relation_type versus relation_ids, resources, metric_names, product_metrics) must be combined.

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 '[CES] 批量设置告警通知屏蔽规则' is essentially a Chinese restatement of the tool name BatchUpdateNotificationMasks, adding only '告警通知' and '规则'. It gives no information that would let an agent distinguish this from siblings such as ces__BatchUpdateNotificationMaskTime, ces__UpdateNotificationMask, or ces__ListNotificationMasks.

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, and no reference to any alternative tool. The agent must infer from the name alone whether to use this batch tool versus the single-item UpdateNotificationMask or the time-specific BatchUpdateNotificationMaskTime.

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