Skip to main content
Glama

iam__KeystoneListProjectsForUser

Lists the projects assigned to a specified IAM user, or lets an IAM user list their own projects.

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

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 carries the full burden; it does disclose the permission model (admin acting on another user vs. self-query), which is genuinely useful behavioral context. It says nothing about pagination, whether projects from all regions/domains are returned, or what happens for a nonexistent user_id.

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 plus the [IAM] tag, with no redundant padding. It is efficient, though the administrative/self distinction could have been separated for faster scanning.

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?

For a one-parameter read tool with no output schema, the essentials are present: what is returned (a project list) and who may call it. However, nothing separates it from adjacent listing tools, and pagination/result-shape behavior is left entirely unstated.

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 user_id parameter already carries an example and a link to the retrieval guide, so the baseline is 3. The phrase '指定IAM用户' merely restates that parameter's role without adding format or sourcing detail beyond the schema.

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 — query the project list of a specified IAM user — and scopes it to a single target user. It is distinguishable from the broader KeystoneListProjects, though it never names that sibling to sharpen the contrast.

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

Usage Guidelines4/5

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

Gives a real usage condition: an administrator querying a specified user's projects, or a user querying their own. That authorization framing tells the agent which identity context the call assumes, but it offers no explicit when-not or named alternative (e.g. enterprise-project variants).

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