Skip to main content
Glama

rds__ListDatabaseUserRole

Queries Huawei Cloud RDS database role information by instance and project, and returns the roles a specified user can grant when a username is provided.

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>"
    },
    "name": "rds__ListDatabaseUserRole"
  }
}

Input Schema

NameRequiredDescriptionDefault
user_nameNo用户名,有值时返回该账号可以授权的角色集合
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 behavioral burden, and it discloses almost nothing. It does not explicitly state the operation is read-only, does not describe what the response contains (role list vs. grantable role set), and does not mention required permissions or whether a missing user_name changes the result shape.

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?

The definition is a single short phrase with zero waste and is front-loaded, but it is terse to the point of under-specification rather than efficient brevity. A short tag prefix plus one clause leaves no room for the scoping details an agent needs.

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 3-parameter query tool with no annotations and no output schema, the description should explain what is returned and how the optional user_name alters semantics. Neither is covered, so an agent cannot predict the result without trial and error.

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 the schema already explains that user_name, when provided, returns the set of roles that account can be granted. The description adds no parameter meaning beyond that, so the baseline 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 description names a verb+resource (query database role information), so the general intent is inferable, but "数据库角色信息" is vague about what is actually listed. It gives no signal distinguishing this from siblings such as rds__ExecutePrivilegeDatabaseUserRole or rds__SetDatabaseUserPrivilege, so an agent must open the schema to understand which is the read path.

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 when to pass user_name versus omitting it, and no reference to alternative grant/revoke tools. Usage is left entirely to inference from the tool 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