Skip to main content
Glama

iam__CreateMetadata

Imports an identity provider's SAML metadata file into Huawei Cloud IAM, linking it to a domain, IdP, and protocol for federated authentication setup.

Instructions

[IAM] 该接口可以用于管理员导入Metadata文件。

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": {
      "domain_id": "<domain_id>",
      "idp_id": "<idp_id>",
      "metadata": "<metadata>",
      "protocol_id": "<protocol_id>",
      "xaccount_type": "<xaccount_type>"
    },
    "name": "iam__CreateMetadata"
  }
}

Input Schema

NameRequiredDescriptionDefault
idp_idYes身份提供商ID。
metadataYes该字段为用户IdP服务器的Metadata文件的内容。
domain_idYes用户所属账号ID。
protocol_idYes协议ID。
xaccount_typeYes该字段为标识租户来源字段,默认为空。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.5/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. It signals a write/import operation and an admin requirement, but says nothing about whether an existing metadata file is replaced, whether the call is idempotent, what permissions beyond 'administrator' are needed, or what happens on a malformed file. For a mutation tool with zero annotation coverage this 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.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single short sentence with no wasted words and the purpose is front-loaded. The brevity is under-specification rather than efficiency, though, and the embedded markdown link to external admin docs adds clutter without information.

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?

A mutation endpoint with five required parameters, no annotations and no output schema needs the description to explain prerequisites, side effects and return behavior. The description supplies only an audience hint, leaving the agent to infer everything else from the schema property names.

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 all five required parameters are documented in the schema itself (idp_id, protocol_id, domain_id, metadata content, xaccount_type). The description adds no meaning beyond that, so the baseline of 3 applies — the schema does the work, the prose contributes nothing extra.

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 gives a verb+resource ('import a Metadata file') scoped to administrators, which is more than a restatement of the name. However, it never says whose metadata or what kind — the schema reveals this is SAML IdP metadata tied to an idp_id/protocol_id, a distinction the description omits. Against siblings like iam__ShowMetadata and iam__ShowKeystoneMetadataFile, no differentiation is offered.

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?

The only guidance is that the caller should be an administrator, which is a useful precondition. There is no statement of when to use this versus the Keystone/metadata read tools, no note that an IdP and protocol must already exist, and no exclusions.

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