Skip to main content
Glama

iam__UpdateAgency

Modify an existing IAM agency by updating its trusted account, duration, or description using the agency ID. Use it to keep delegated access permissions current.

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": "<agency>",
      "agency_id": "<agency_id>"
    },
    "name": "iam__UpdateAgency"
  }
}

Input Schema

NameRequiredDescriptionDefault
agencyYes委托信息。
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.6/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 behavioral burden, and it discloses almost nothing. It does not say whether this is a full or partial update, what happens to fields omitted from the agency object, whether the change is reversible, or what the response contains — all material for a mutation tool.

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?

A single front-loaded sentence with no filler or redundancy, though it is arguably under-sized for a nested-object mutation rather than genuinely efficient. Conciseness itself is not a problem here.

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 takes a nested agency object with four mutually-optional fields plus a path ID, has no annotations and no output schema. Given that complexity, the definition leaves the agent without the update semantics (partial vs full replace) or any description of the result, so it is not complete enough on its own.

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%: the nested agency fields document duration (FOREVER/ONEDAY/custom days), description length limit, trust_domain_id vs trust_domain_name precedence, and the "at least one of four" rule, and agency_id explains how to obtain the ID. The description adds no parameter meaning 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.

Purpose3/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 ("modify an agency" / 修改委托) and adds the audience constraint (administrators), but it is essentially a restatement of the tool name iam__UpdateAgency. Nothing distinguishes it from siblings such as iam__UpdateAgencyCustomPolicy or iam__ShowAgency.

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?

Only a single gating condition is given: the caller must be an administrator, with a link to the admin concept. There is no guidance on when to use this versus ShowAgency, CreateAgency, or the custom-policy variants, and no mention of prerequisites like owning the agency.

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