Skip to main content
Glama

iam__DeleteCustomPolicy

Deletes a specified custom IAM policy using its policy ID, enabling administrators to remove outdated permissions and maintain access control in Huawei Cloud.

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_id": "<role_id>"
    },
    "name": "iam__DeleteCustomPolicy"
  }
}

Input Schema

NameRequiredDescriptionDefault
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 provided, so the description carries the full behavioral burden, yet it only notes that administrator privileges are involved. It does not disclose that deletion is irreversible, what happens to existing attachments or inherited permissions, whether the operation fails when the policy is in use, or what the response confirms. For a destructive single-purpose API with zero annotation coverage, this is a significant 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?

The definition is a single short sentence with the service tag and action front-loaded and no filler text. It is efficient, though the embedded administrator documentation link displaces content that would have been more useful as behavioral detail.

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?

The tool is simple (one required ID, no output schema, no nesting), so the bar is low, but this destructive operation with no annotations should still describe deletion consequences and prerequisites. As written, an agent knows what the tool does but not what risks or preconditions calling it entails.

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?

There is a single required role_id parameter and the schema description coverage is 100%, including an example and a link explaining how to obtain the ID via ListCustomPolicies. The description adds nothing beyond the schema, so the baseline of 3 applies.

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 use this interface to delete a custom policy, and the [IAM] tag scopes it to the IAM service. It is clearly distinguishable from create/update/list siblings by the delete verb. It does not explicitly contrast with ShowCustomPolicy or ListCustomPolicies, so it falls short of full sibling differentiation.

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 usage context is that the caller should be an administrator, which is stated via a documentation link rather than explained. There is no guidance on when to prefer this over alternatives, no preconditions such as detaching the policy from users/groups first, and no mention of what to do if the policy is still in use.

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