Skip to main content
Glama

iam__UpdateCloudServiceCustomPolicy

Modify a Huawei Cloud IAM custom policy by policy ID, updating its permissions, display name, and description for access control management.

Instructions

[IAM] 该接口可以用于管理员修改云服务自定义策略。

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": {
      "role": "<role>",
      "role_id": "<role_id>"
    },
    "name": "iam__UpdateCloudServiceCustomPolicy"
  }
}

Input Schema

NameRequiredDescriptionDefault
roleYes自定义策略信息。
role_idYes待修改的自定义策略ID,获取方式请参见:[自定义策略ID](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=IAM&api=ListCustomPolicies)。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden, yet its single sentence says nothing about whether update replaces or merges the existing statement list, whether changes are reversible, or which permission scope is required beyond 'administrator'.

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?

It is one front-loaded sentence with no filler, but its brevity reflects under-specification rather than disciplined economy.

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 mutation tool with no annotations, no output schema, and a heavily nested policy body, the definition does not cover replacement semantics, error behavior, or the effect on existing statements, which leaves significant gaps.

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 coverage is 100% and both parameters are fully documented in the schema, so the baseline is 3. The description adds no meaning about the deeply nested role.Statement/Condition structure that the schema does not already convey.

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: administrators modify a cloud-service custom policy. That pairing clearly separates the tool from Create, Delete, and Show siblings, although it never names an alternative explicitly.

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?

It notes the caller must be an administrator, but never says when to use it instead of iam__CreateAgencyCustomPolicy or iam__UpdateAgencyCustomPolicy, nor does it state prerequisites such as the policy needing to exist.

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