Skip to main content
Glama

rds__ExecutePrivilegeDatabaseUserRole

Grants specified roles to a database user on a Huawei Cloud RDS instance using project and instance IDs. Use it to manage user privileges after user and role names are known.

Instructions

[RDS] 授予用户角色

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": {
      "instance_id": "<instance_id>",
      "project_id": "<project_id>",
      "roles": "<roles>",
      "user": "<user>"
    },
    "name": "rds__ExecutePrivilegeDatabaseUserRole"
  }
}

Input Schema

NameRequiredDescriptionDefault
userYes用户名称
rolesYes角色名称
project_idYes项目ID
instance_idYes实例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 supplied, so the description carries the full burden of behavioral disclosure. It does imply a mutating grant operation, but it says nothing about whether the operation is idempotent, what happens if the role is already held, whether existing privileges are affected, or what permissions and risks are involved.

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 short phrase that provides a limited front-loaded statement without any unnecessary detail. However, it is too short to be useful, and the '[RDS]' service prefix contributes little, so this is restrained but under-specified rather than genuinely concise.

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?

For a tool that mutates four required parameters and grants database privileges, with no annotations and no output schema, the description is far too thin. An agent would not know the prerequisites, the side effects, or the expected outcome for a privilege-granting call.

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 every parameter (user, roles, project_id, instance_id) is documented in the schema, so the description does not need to repeat those definitions. It adds no meaning beyond the schema, such as whether roles must already exist or whether instance_id belongs to the project_id; therefore, the baseline score of 3 applies.

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 phrase '授予用户角色' (grant user role) does indicate a specific verb and resource, and it clarifies that the tool grants something rather than performing an opaque 'Execute Privilege' operation. However, it is essentially a translation of the tool name, with no mention of the RDS instance, project scope, or how it differs from sibling operations such as rds__ExecuteRevokeDatabaseUserRole and rds__SetDatabaseUserPrivilege.

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 guidance on when to use this tool instead of the sibling tools that modify or list privileges. Nothing says whether the tool works only on specific database engines, whether the user must already exist, or what setup is required.

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