Skip to main content
Glama

codeartsdeploy__UpdateHostGroupPermissions

Updates the permission matrix for a host group by its ID, setting role-based permissions such as view, edit, delete, add host, manage, or copy to true or false.

Instructions

[CODEARTSDEPLOY] 根据主机集群id修改主机集群权限矩阵。

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>",
      "permission_name": "<permission_name>",
      "permission_value": "<permission_value>",
      "project_id": "<project_id>",
      "role_id": "<role_id>"
    },
    "name": "codeartsdeploy__UpdateHostGroupPermissions"
  }
}

Input Schema

NameRequiredDescriptionDefault
role_idYes角色id
group_idYes主机集群id
project_idYes项目id
permission_nameYes权限名称,can_view:查看权限;can_edit:编辑权限;can_delete:删除权限;can_add_host:添加主机权限;can_manage:权限管理权限;can_copy:复制主机权限
permission_valueYestrue 有权限,false 无权限

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.6/5.0
Behavior2/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 does not disclose that this is a mutating operation, whether it is idempotent, what permissions are required to change the matrix, whether existing entries are overwritten, or what the response contains. For a write tool with zero annotation coverage this is a substantial gap.

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 a bracketed service prefix. Nothing is wasted, though the prefix consumes space without adding task-relevant meaning.

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?

For a five-parameter, all-required mutation with no annotations and no output schema, the description is too thin. It should at minimum note that it grants or revokes one permission for one role on a host group and mention any authorization prerequisites.

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 all five parameters documented including the enum meanings for permission_name and the boolean semantics of permission_value. The description adds nothing beyond that, which is acceptable given the schema does the heavy lifting, but the baseline of 3 is the ceiling here.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a verb (修改/update) and a resource (主机集群权限矩阵), scoped by host group id, which is more specific than the bare tool name. However, it never clarifies that only a single permission entry (permission_name/permission_value) for a given role is changed, so 'permission matrix' remains vague. It also does not distinguish itself from the read-only sibling ListHostGroupPermissions.

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 guidance, prerequisites, or alternatives are given. An agent must infer from the name alone that this is the write counterpart to ListHostGroupPermissions and cannot tell when to prefer it over BatchUpdateApplicationPermissions.

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