Skip to main content
Glama

ces__UpdateResourceGroup

Update an existing CES resource group's name, tags, or instance matching rules by group ID and project ID. Use it to change which cloud resources are grouped for monitoring.

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": {
      "group_id": "<group_id>",
      "group_name": "<group_name>",
      "project_id": "<project_id>"
    },
    "name": "ces__UpdateResourceGroup"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNo标签动态匹配时的关联标签,type为TAG时该字段不为空
group_idYes资源分组ID,以rg开头,后跟22位由字母或数字组成的字符串
instancesNo实例名称匹配参数
group_nameYes资源分组名称,只能为字母、数字、汉字、-、_,最大长度为128
project_idYes租户ID
comb_relationNo
product_namesNo修改资源层级为云产品时的云产品的取值,一般由"服务命名空间,服务首层维度名称"组成,如"SYS.ECS,instance_id"。多个云产品则用“;”隔开,如"SERVICE.BMS,instance_id;SYS.ECS,instance_id"。
extend_relation_idsNo智能添加时企业项目匹配传入参数
enterprise_project_id_and_tagsNo资源匹配规则为组合匹配时传入的参数

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

D1.7/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 behavioral burden and delivers none of it. It does not state that this is a mutating operation, whether omitted fields are preserved or cleared (replace vs. patch semantics), what permissions or tenant scoping are required, or what happens to existing group members and associated alarm templates.

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?

It is a single short line with no filler, so nothing is wasted, but this is under-specification rather than conciseness. The one line is a bracketed product prefix plus a restated tool name and carries no actionable information.

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?

The tool has 9 parameters including deeply nested tag-matching, instance-matching, and alarm-combination rule objects, no output schema, and no annotations. Against that complexity a seven-character restatement is completely inadequate; an agent has no basis to decide between partial update and full replacement semantics.

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 89%, so the nested fields (group_id, group_name, tags, instances, comb_relation, product_names, extend_relation_ids, enterprise_project_id_and_tags) are already documented in the schema itself. The description contributes nothing on top of that, but the high coverage justifies the baseline 3 rather than a penalty.

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?

"[CES] 修改资源分组" restates the tool name (UpdateResourceGroup) as a verb+resource pair and nothing more. It conveys that a resource group is modified, but gives no scope, no indication of which aspects (name, tags, instances, matching rules) are modifiable, and no differentiation from siblings such as ces__CreateResourceGroup or ces__UpdateResourceGroupAssociationAlarmTemplate.

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

Usage Guidelines1/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 prerequisites, and no mention of alternatives. An agent must infer from the name alone that this is the edit counterpart to the create/list/show group tools, and cannot tell from the definition when a group should be updated versus deleted and recreated.

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