Skip to main content
Glama

ces__UpdateResourceGroupAssociationAlarmTemplate

Submit an asynchronous task to batch-associate custom alarm templates with a resource group, creating or updating alarm rules and their notifications.

Instructions

[CES] 提交资源分组批量关联自定义告警模板异步任务,由异步任务覆盖性创建告警规则。每个用户创建处于待执行状态的异步任务数量上限为100个,单个资源分组仅可有1个未完成的任务。

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": {
      "notification_enabled": "<notification_enabled>",
      "project_id": "<project_id>",
      "template_ids": "<template_ids>"
    },
    "name": "ces__UpdateResourceGroupAssociationAlarmTemplate"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYes租户ID
template_idsYes告警模板编号列表,当ID列表为空时,将删除该资源分组已关联的告警模板所创建的告警规则
ok_notificationsNo告警恢复通知列表
alarm_notificationsNo告警触发通知列表
notification_mannerNoNOTIFICATION_GROUP(通知组)/TOPIC_SUBSCRIPTION(主题订阅)/NOTIFICATION_POLICY(通知策略)
notification_enabledYes是否开启告警通知。true:开启,false:关闭。
enterprise_project_idNo企业项目ID
notification_end_timeNo告警通知关闭时间
notification_begin_timeNo告警通知开启时间
notification_policy_idsNo关联的通知策略ID列表

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.5/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden and does meaningful work: it discloses that execution is asynchronous, that alarm rules are created with overwrite semantics (覆盖性创建), and that there are concurrency quotas (100 pending tasks per user, one unfinished task per resource group). Missing are failure/rollback behavior, permission requirements, and what handle the async task returns; the deletion side effect of an empty template_ids list is only in the schema.

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?

Two sentences with the core action front-loaded and quotas appended as a hard constraint; no filler. It is dense and readable, though the phrasing is compact to the point that the overwrite consequence needs to be inferred.

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

Completeness4/5

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

For a 10-parameter, nested-object mutation tool with no annotations and no output schema, the description supplies purpose, async nature and quotas, and the rich schema covers individual fields. The main remaining gap is that it never indicates what an async submission returns (e.g., a task ID) for follow-up, which matters when there is no output schema.

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 all 10 parameters in detail, including enums, ID patterns and notification nested types. The description adds no parameter-level meaning beyond the schema, so the baseline 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?

Description states a specific verb and resource: submit (提交) a resource-group batch alarm-template association async task, and adds the mechanism (async job overwrite-creates alarm rules). This clearly distinguishes it from template CRUD siblings like ces__UpdateAlarmTemplate. It does not name a sibling to contrast with, so it falls short of 5.

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?

No when-to-use/when-not-to-use guidance and no named alternative (e.g., versus calling CreateAlarmRules directly or updating a single template). The only operational context given is quota ('max 100 pending tasks per user, 1 incomplete task per resource group'), which constrains invocation but does not route the agent between options.

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