Skip to main content
Glama

iam__AssociateRoleToUserOnEnterpriseProject

Grants a user a specified IAM role on an enterprise project so access permissions are scoped to that project.

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>",
      "role_id": "<role_id>",
      "user_id": "<user_id>"
    },
    "name": "iam__AssociateRoleToUserOnEnterpriseProject"
  }
}

Input Schema

NameRequiredDescriptionDefault
role_idYes权限ID。
user_idYes用户ID。
enterprise_project_idYes企业项目ID。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.9/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, and it discloses almost nothing. It does not state required permissions, whether the grant is idempotent, whether it replaces existing role assignments for that user, what happens on invalid IDs, or what is returned. Only the core mutation intent is conveyed.

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?

A single short sentence with no filler, and the scope qualifier is front-loaded. There is no wasted wording, though the terseness borders on under-specification rather than efficient conciseness.

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?

This is a three-required-parameter mutation tool with no annotations and no output schema, so the description is the only place behavioral context can live, and it supplies very little. An agent knows what the tool does but not what permissions it needs, what side effects to expect, or how to confirm success.

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 three parameters (role_id, user_id, enterprise_project_id) are documented in the schema, so the baseline of 3 applies. The description adds no format hints or constraints beyond identifying the user and the enterprise project as the scope of the grant.

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 states a specific operation: granting an authorization to a user scoped to an enterprise project ('基于用户为企业项目授权'). Combined with the tool name, an agent can distinguish it from the group/agency associate variants and the RevokeRoleFromUser counterpart without opening a schema. It stops short of explicitly naming which sibling to prefer, which keeps it from a 5.

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 explicit when-to-use or when-not-to-use guidance, no prerequisites, and no reference to alternatives such as the group or agency associate tools. The intended usage is only inferable from the operation itself, so this is effectively no guidance beyond the name.

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