Skip to main content
Glama

ces__AddAlarmRuleResources

Batch-add resources to Huawei Cloud CES alarm rules by specifying the alarm ID, project ID, and resource dimensions. Use resource group management APIs for resource-group-type alarm 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": {
      "alarm_id": "<alarm_id>",
      "project_id": "<project_id>",
      "resources": "<resources>"
    },
    "name": "ces__AddAlarmRuleResources"
  }
}

Input Schema

NameRequiredDescriptionDefault
alarm_idYesAlarm实例ID
resourcesYes资源信息
project_idYes租户ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It adds genuinely useful behavioral context by disclosing one unsupported rule type and a redirect for it, but leaves unstated whether resources are appended or replace existing entries, how duplicates are handled, and what permissions are required for the mutation.

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 compact sentence with the primary action first and the exclusion immediately after, with no filler. The trailing pointer to 'related interfaces' is the only slightly soft element, but it does not bloat the text.

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 mutation tool with three fully documented parameters, no output schema, and no annotations, the description covers the main restriction but omits result behavior, limits on appended resources, and failure modes. It is adequate to select the tool but not to predict its side effects.

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%, with alarm_id, project_id, and the nested resource dimension list all documented inline, including dimension naming guidance and the four-dimension limit. 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?

The description states a specific verb and resource: batch-add alarm rule resources, and explicitly scopes out resource-group-type alarm rules. This distinguishes it cleanly from the Delete/List sibling tools by verb, though the replacement path is described only generically as 'resource group management related interfaces' rather than a named tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives a concrete when-not condition: resource-group-type alarm rules cannot use this call, and points to another capability area for that case. It stops short of naming the actual sibling tool or giving prerequisites, so the agent must still map the vague reference to a real tool.

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