Skip to main content
Glama

codeartsdeploy__UpdateEnvironmentPermission

Edit role permissions for a CodeArts Deploy environment by enabling or disabling view, edit, delete, deploy, or manage access for a specified role.

Instructions

[CODEARTSDEPLOY] 编辑环境权限。

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": {
      "application_id": "<application_id>",
      "environment_id": "<environment_id>"
    },
    "name": "codeartsdeploy__UpdateEnvironmentPermission"
  }
}

Input Schema

NameRequiredDescriptionDefault
role_idNo角色id
application_idYes应用id
environment_idYes环境id
permission_nameNo权限名称,can_view:查看权限;can_edit:编辑权限;can_delete:删除权限;can_deploy:部署权限;can_manage:权限管理权限
permission_valueNotrue 有权限,false 无权限

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.2/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 behavioral burden, yet it only implies a mutation. It says nothing about whether the caller needs admin rights on the application, whether the change is idempotent or reversible, what happens if role_id or permission_name is omitted, or what the response contains. For a permission-mutating tool this is a serious gap.

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

Conciseness3/5

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

The single short sentence is front-loaded and free of filler, but that brevity reflects under-specification rather than efficiency. There is no structure such as a usage line or a note on the required path identifiers.

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?

With five parameters, no annotations, and no output schema, the description needed to explain the effect of toggling a permission and the required targeting of application/environment. It provides none of that, leaving an agent unable to call this mutation confidently.

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%: role_id, application_id, environment_id, the permission_name enum with per-value meanings, and the boolean permission_value are all documented in the schema, including the true/false semantics. The description adds nothing beyond this, so the baseline 3 applies.

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 is a Chinese restatement of the tool name ('编辑环境权限' = edit environment permission), giving a verb and a resource but no additional specificity. It does not distinguish this tool from close siblings such as UpdateEnvironment, BatchUpdatePermissionLevel, or UpdateHostGroupPermissions. This is essentially tautological.

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 guidance on when to use this tool, when to use a sibling (e.g., BatchUpdatePermissionLevel for multi-permission edits, or ListEnvironmentPermissions to inspect current grants first), or any prerequisites. The agent must infer everything from the tool name.

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