Skip to main content
Glama

iam__CreateUnscopeTokenByIdpInitiated

Retrieve an unscoped IAM token from an IdP-initiated federated login by passing the SAMLResponse returned after successful IdP authentication.

Instructions

[IAM] 该接口可以用于通过IdP initiated的联邦认证方式获取unscoped 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": {
      "SAMLResponse": "<SAMLResponse>"
    },
    "name": "iam__CreateUnscopeTokenByIdpInitiated"
  }
}

Input Schema

NameRequiredDescriptionDefault
SAMLResponseYes在IdP认证成功后返回的响应体。详情请参见:[获取联邦认证unscoped token(IdP initiated)](https://support.huaweicloud.com/api-iam/iam_02_0003.html)。

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?

With no annotations, the description carries the full burden of behavioral disclosure, and it only adds that the resulting token is 'unscoped' — a meaningful trait, since the token carries no project scope. It says nothing about token lifetime, whether the token must be subsequently scoped, replay/one-time-use of the SAMLResponse, or failure behavior when the assertion is invalid.

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?

One short sentence with the resource and the auth mechanism front-loaded and zero filler. It is efficient, though the terseness leaves no room for the operational caveats an agent would need.

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?

For a credential-minting operation with no annotations and no output schema, the description should at least sketch what comes back (a token object) and any prerequisite state. As written, an agent knows the intent but not the contract or the surrounding workflow.

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 single SAMLResponse parameter is documented in the schema with a link to the Huawei Cloud reference. The description adds no syntax, encoding, or freshness constraints beyond what the schema already states, so 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?

The description names a specific verb (获取/obtain), a specific resource (unscoped token), and the mechanism (IdP-initiated federated authentication), which implicitly separates it from the sibling iam__CreateUnscopedTokenWithIdToken. It stops short of explicitly naming that sibling or stating the contrast, so it is clear but not fully differentiated.

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?

Usage is only implied: the agent can infer this is the IdP-initiated federated login flow, but the description never states when to choose this over the IdToken or Keystone password/MFA token variants, nor does it give prerequisites such as having a valid IdP assertion first. No when-not-to-use guidance is present.

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