Skip to main content
Glama

iam__ShowUser

Retrieve IAM user details by user ID to let administrators inspect any user or users view their own profile information.

Instructions

[IAM] 该接口可以用于管理员查询IAM用户详情,或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": {
      "user_id": "<user_id>"
    },
    "name": "iam__ShowUser"
  }
}

Input Schema

NameRequiredDescriptionDefault
user_idYes待查询的IAM用户ID,获取方式请参见:[获取账号、IAM用户、项目、用户组、委托的名称和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

A3.6/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral load, and it does disclose one meaningful trait: the authorization model (admin vs self-lookup). It says nothing about whether the response includes only the target user or what happens on a nonexistent or unauthorized user_id, which matters for a lookup whose access rules differ by caller.

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 front-loaded sentence that states the resource, the operation and the caller scope with no filler. The inline documentation link is slightly noisy but does not obscure the point.

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

Completeness5/5

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

For a single-parameter read with a fully described schema and no output schema, the definition supplies everything an agent needs to decide to call it and what to pass. Adding return-field detail is not required here.

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?

The single path parameter user_id is fully documented in the schema at 100% coverage, including where to obtain the ID. The description adds no meaning beyond that, 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?

The description names a specific verb ('查询'/query) and resource (IAM user details), and it defines the two scopes under which the call is valid: an administrator looking up any user, or a user looking up themselves. It does not distinguish itself from the closely named sibling iam__KeystoneShowUser, so an agent still has to guess between the two.

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?

It implies the caller conditions: use this as an admin to inspect another user, or as the user to inspect yourself. That is real when-to-use context, but there is no explicit exclusion or named alternative for the Keystone variant, and no prerequisites such as required permissions or scope.

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