Skip to main content
Glama

iam__CreateTemporaryAccessKeyByAgency

Obtain temporary AK/SK credentials and a security token by assuming an IAM agency, enabling delegated access to Huawei Cloud resources for a specified duration.

Instructions

[IAM] 该接口可以用于通过委托来获取临时访问密钥(临时AK/SK)和securitytoken。

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": {
      "auth": "<auth>"
    },
    "name": "iam__CreateTemporaryAccessKeyByAgency"
  }
}

Input Schema

NameRequiredDescriptionDefault
authYes认证信息。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.2/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 falls well short. It does disclose that the result is credentials plus a security token and that they are temporary, but says nothing about required IAM permissions on the agency, whether the call mutates state on the server, how repeated calls interact, or how sensitive the returned secret is. For a credential-issuing operation with zero annotation coverage, that 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?

A single front-loaded sentence identifying the operation and its output, with no filler. It is appropriately short for a one-parameter tool, though the terseness leaves no room for the usage caveats noted above.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, and the description does cover what is produced (temporary AK/SK plus security token), which is the essential return information. For a credential-issuing tool with a deeply nested single parameter, however, it omits authorization requirements and side-effect profile, leaving the agent without the context needed to call it safely.

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% and the nested auth/assume_role structure is fully documented in the schema, including agency_name, domain_id/domain_name, and duration_seconds bounds. The description adds no parameter-level meaning beyond the schema, so the baseline 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?

States a specific verb and resource: obtain temporary access key (temporary AK/SK) and security token, and names the mechanism ('通过委托' / via agency), which implicitly separates it from iam__CreateTemporaryAccessKeyByToken. It stops short of explicitly contrasting with that sibling, but the operation and its route are unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase '通过委托' implies this is the path to use when credentials should be obtained by assuming an agency rather than by token or permanent key, which gives an agent useful selection signal. However there is no explicit when-to-use/when-not statement, no prerequisites (e.g. that the agency must already exist and be granted to the caller), and no sibling named.

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