Skip to main content
Glama

projectman__ShowCurUserRole

Retrieves the current user's role in a specified Huawei Cloud project using its 32-character project ID.

Instructions

[PROJECTMAN] 获取用户在项目中的角色

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": {
      "project_id": "<project_id>"
    },
    "name": "projectman__ShowCurUserRole"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYesdevcloud项目的32位id

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, yet it discloses nothing about permissions required, error behavior for users outside the project, or whether the result is a single role or a list. Only the low-risk nature of a "Show/Get" verb hints that this is a read operation.

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 the resource front-loaded and zero padding; the [PROJECTMAN] prefix is a service tag rather than noise. It is efficient, though its brevity edges toward under-specification rather than crispness.

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 description is minimally adequate but leaves the return value unexplained (role name, role ID, or permission set?) and says nothing about failure modes. An agent could call it, but would not know what to expect back.

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% (project_id is documented with format, length, pattern, and an example), so the schema already does the heavy lifting. The description adds no meaning beyond it, which is the expected baseline of 3.

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 gives a specific verb+resource ("获取用户在项目中的角色" / get a user's role in a project), which is clearer than a tautology. However, it never states that this is the *current* user (the tool name's "CurUser" carries that, not the description), and it does nothing to distinguish itself from siblings like projectman__ShowCurUserInfo or projectman__UpdateMembesRoleV4.

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 mention of alternatives, and no preconditions (e.g., must the caller be a project member, does it fail for non-members). The agent must infer all usage context from the name alone.

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