Skip to main content
Glama

iam__CreateCloudServiceCustomPolicy

Creates an IAM custom policy that defines fine-grained allow or deny permissions for Huawei Cloud services, letting administrators scope access by action, resource, and condition.

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>"
    },
    "name": "iam__CreateCloudServiceCustomPolicy"
  }
}

Input Schema

NameRequiredDescriptionDefault
roleYes自定义策略信息。

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 burden of behavioral disclosure. Beyond the fact that it is an administrator action, it says nothing about whether the creation is irreversible, what happens if the display_name already exists, what identifiers/permissions are returned, or what validation errors to expect from the nested policy statement. This is a significant gap for a mutation tool with zero annotation coverage.

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?

One front-loaded sentence with an [IAM] prefix and no filler. It is efficient, though it is closer to under-specified than concise given the complexity of the payload it accepts.

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?

This is a mutation tool with a deeply nested policy document schema, no annotations, and no output schema. The description explains none of the creation semantics an agent must get right: how Action/Resource strings are formatted, the Deny-precedence behavior, or how the created policy is identified afterward. The burden left on the schema alone is too high.

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 the single nested 'role' parameter's substructure (type, policy, display_name, description, Version, Statement with Action/Effect/Resource/Condition) is fully documented in the schema itself. The description adds nothing beyond the schema, which is expected at this coverage level, but the sparse schema prose for fields like 'Resource' and 'Condition' is not compensated for.

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 concrete verb and resource: create a cloud-service custom policy under IAM, restricted to administrators. Naming the resource as a 'cloud service custom policy' implicitly distinguishes it from the agency-policy sibling, but the distinction is never made explicit, so an agent must infer it from names alone.

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?

The only contextual guidance is that the caller should be an administrator. There is no statement of when to choose this over iam__CreateAgencyCustomPolicy or iam__UpdateCloudServiceCustomPolicy, no prerequisites (root/agency setup, quotas), and no preconditions such as whether the policy name must be unique.

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