Skip to main content
Glama

iam__ListRolesForUserOnEnterpriseProject

Retrieve roles and permissions granted directly to a user in a specific enterprise project by supplying the enterprise project ID and user ID.

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": {
      "enterprise_project_id": "<enterprise_project_id>",
      "user_id": "<user_id>"
    },
    "name": "iam__ListRolesForUserOnEnterpriseProject"
  }
}

Input Schema

NameRequiredDescriptionDefault
user_idYes用户ID。
enterprise_project_idYes企业项目ID。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. 查询 implies a non-mutating read, and 直接关联 discloses that only direct user bindings (not group-inherited ones) are returned, but nothing is said about permissions required, pagination, or the shape of the response.

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 scope qualifier front-loaded and no tangents. The lead-in 该接口可用于 is mild boilerplate that could be dropped, but nothing substantive is wasted.

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 two-parameter, all-required read tool with complete schema documentation and no output schema, the definition is minimally adequate. It never explains what a returned permission entry contains, which matters because no output schema exists to fill that gap.

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 coverage is 100% and both required path parameters are documented in the schema itself. The description adds no extra meaning such as ID format or where to obtain these values, so the baseline of 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 gives a specific verb and resource in Chinese: querying the permissions of a user directly associated with an enterprise project. The qualifier 直接关联 (directly associated) meaningfully narrows the scope versus group-inherited roles, though no sibling tool is named for contrast.

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 by the wording 可用于查询 (can be used to query) for an enterprise project plus user pair. There is no explicit when-to-use, no when-not-to-use, and no pointer to the sibling ListEnterpriseProjectsForUser or the group variant.

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