Skip to main content
Glama

iam__CreateTokenWithIdToken

Exchanges an OpenID Connect ID token for a federated IAM authentication token, enabling access to Huawei Cloud resources.

Instructions

[IAM] 获取联邦认证token(OpenId Connect Id token方式)

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__CreateTokenWithIdToken"
  }
}

Input Schema

NameRequiredDescriptionDefault
authYesauth信息

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.1/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations exist, so the description carries the full behavioral burden, and it provides none of what matters for a credential-issuing call: that it mints a token (a security-sensitive, non-idempotent operation), whether an OIDC identity provider must be pre-configured, what determines token lifetime, and whether the scope block narrows the resulting token.

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 short sentence with the operation front-loaded and zero redundant wording. It is efficient, though the brevity comes at the cost of any guidance, so it is concise rather than complete.

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

Completeness4/5

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

Note: judged against the reality that the schema is fully described, but the tool is a nested-object credential issuer with no annotations and no output schema. The one-line description leaves the agent without knowledge of returned token structure or preconditions, a meaningful gap for a security-sensitive mint operation.

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/scope/id_token structure is documented inline (id-or-name requirement for domain and project), so the schema does the heavy lifting. The description adds no extra meaning about how auth, scope, or id_token interact or which combinations are valid, which is the baseline 3 case.

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 names a specific verb and resource ('获取联邦认证token' – obtain a federated authentication token) and constrains the mechanism to OpenID Connect ID token authentication. That is clear enough to distinguish it in broad strokes from password-based siblings such as KeystoneCreateUserTokenByPassword, though it never explicitly contrasts with the very close sibling iam__CreateUnscopedTokenWithIdToken.

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?

There is no statement of when to use this tool versus the many other token-issuing siblings (scoped vs unscoped, IdP-initiated, agency token, login token). No prerequisites or context are given, so the agent must infer that the caller already holds an OIDC id_token and has configured OIDC via CreateOpenIdConnectConfig.

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