Skip to main content
Glama

iam__DeleteAgency

Deletes an IAM agency using its agency ID, helping administrators remove unused or unwanted delegations from Huawei Cloud IAM.

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": {
      "agency_id": "<agency_id>"
    },
    "name": "iam__DeleteAgency"
  }
}

Input Schema

NameRequiredDescriptionDefault
agency_idYes待删除的委托ID,获取方式请参见:[获取委托名、委托ID](https://support.huaweicloud.com/api-iam/iam_17_0002.html)。

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?

没有提供任何注解,因此描述要承担全部说明责任。它写明该操作会删除,但没有说明是否不可逆、删除仍附带策略的委托会怎样、需要什么权限,或者调用与删除之间是否存在延迟。对于在零注解覆盖下的破坏性变更操作,这是重大缺口。

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?

仅一句简洁的话,动词和资源前置,没有赘余内容。发布时内嵌的管理员支持文档 Markdown 链接属于轻微噪音,但不影响可读性。

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?

对于一个单参数、破坏性且无注解、无输出 schema 的工具,描述只说明了它会做什么。它遗漏了操作者在使用该工具前所需的安全性、权限和前置条件方面的细节,因此仅凭该定义,代理无法安全地自行调用它。

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 描述覆盖率为 100%,因此 schema 已经说明了 agency_id 的含义以及获取该 ID 的位置。描述没有对参数补充任何内容,这印证了在由 schema 承担说明责任的场景下,基线分数应为 3。

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?

该描述清晰地陈述了一个具体动词(删除)和资源(委托),并能与 CreateAgency、ShowAgency、UpdateAgency 等同类工具区分开。“[IAM]”前缀指明服务,而“管理员”的限定则暗示了受限制的范围。它没有明确点出具体的同类工具,因此止步于 4 分,而不是 5 分。

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?

唯一的指引是隐含的、仅限管理员使用。没有说明何时应删除委托、有哪些前置条件(例如是否需要先移除已关联的权限或角色),也没有提示对仍被使用的委托进行删除与撤销权限有何不同。调用者必须阅读外部文档才能正确使用该工具。

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