Skip to main content
Glama

iam__ShowDomainRoleAssignments

Query IAM role assignments for a specified Huawei Cloud account to audit user, group, agency, role, scope, and inherited access permissions.

Instructions

[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": {
      "domain_id": "<domain_id>"
    },
    "name": "iam__ShowDomainRoleAssignments"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo分页查询时数据的页数,查询值最小为1。需要与per_page同时存在。
scopeNo授权范围,取值范围:project、domain、enterprise_project。该参数与scope.project_id、scope.domain_id、scope.enterprise_projects_id只能选择一个。
role_idNo策略ID。
subjectNo授权主体,取值范围:user、group、agency。该参数与subject.user_id、subject.group_id、subject.agency_id只能选择一个。
per_pageNo分页查询时每页的数据个数,取值范围为[1,50]。需要与page同时存在。
domain_idYes待查询账号ID。
is_inheritedNo是否包含基于所有项目授权的记录,默认为false。当参数scope=domain或者scope.domain_id存在时生效。true:查询基于所有项目授权的记录。 false:查询基于全局服务授权的记录。
include_groupNo是否包含基于IAM用户所属用户组授权的记录,默认为true。当参数subject=user或者subject.user_id存在时生效。true:查询基于IAM用户授权、IAM用户所属用户组授权的记录。 false:仅查询基于IAM用户授权的记录。
scope.domain_idNo待查询账号ID。
subject.user_idNo授权的IAM用户ID。
scope.project_idNo授权的项目ID。
subject.group_idNo授权的用户组ID。
subject.agency_idNo授权的委托ID。
scope.enterprise_projects_idNo授权的企业项目ID。

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 provided, so the description carries the full behavioral burden. '查询' implies a read-only operation, but nothing states permission prerequisites, whether results are paginated (the schema has page/per_page but the description never mentions pagination), default sorting, or what the response contains — and there is no output schema to compensate.

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 front-loaded sentence with no wasted words, which is structurally clean. But the brevity comes at the cost of under-specification for a 14-parameter tool, so shortness here is not clearly a virtue.

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?

With 14 parameters, complex mutual-exclusion rules, no annotations, and no output schema, a one-sentence description is far from sufficient. It should at minimum explain the pagination contract and the scope/subject filter interaction that dominate this tool's usage.

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%, so all 14 parameters, including the mutually exclusive scope/subject groups and the conditional is_inherited/include_group flags, are documented in the schema itself. The description adds no meaning beyond that, which is the baseline case when the schema does the heavy lifting.

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 names a verb and resource ('查询指定账号中的授权记录' — query authorization records in a specified account), so the agent knows it is a read of role/authorization assignments scoped by account. However, it never distinguishes this from closely related siblings such as ListDomainPermissionsForAgency or KeystoneListDomainPermissionsForGroup, and '授权记录' is vague about whether it returns role assignments, policy grants, or inheritance entries.

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 when-to-use guidance, no trigger conditions, and no naming of alternatives despite a dense sibling set of IAM permission-listing tools. The agent must infer from the tool name alone that this is the account-wide assignment listing versus the group/agency-scoped 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