Skip to main content
Glama

rds__UpdateHostPrivilege

Change which hosts a database user can connect from on a Huawei Cloud RDS instance by specifying the project, instance, username, and allowed hosts.

Instructions

[RDS] 修改实例下用户host信息。

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": {
      "hosts": "<hosts>",
      "instance_id": "<instance_id>",
      "project_id": "<project_id>",
      "user_name": "<user_name>"
    },
    "name": "rds__UpdateHostPrivilege"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostsYeshost信息
user_nameYes数据库用户名
project_idYes项目id
instance_idYes实例id

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are supplied, so the description must describe behavior on its own, and it does not. It does not say whether the `hosts` array replaces or appends to the existing host whitelist, whether omitted hosts are dropped, or whether the change is reversible. It also does not mention permission requirements, possible connectivity loss, or propagation delay for this access-control mutation.

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?

It is a single front-loaded sentence with no filler and no internal redundancy. Its brevity is efficient as a structure, although the information it leaves out is the problem, not the wording.

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 four-parameter required access-control mutation with no annotations and no output schema, the description is far too thin. The agent cannot tell the effect on existing host entries, the failure modes, or the return value, so it would have to guess before calling this destructive-sounding operation.

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?

The schema has 100% description coverage, so the 3 baseline applies: the parameters are already documented. The description adds only the loose framing that the `hosts` values relate to a database user in an instance. It adds no syntax (CIDR vs IP vs wildcard) or replace-vs-append semantics beyond the schema.

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 states a verb and a resource: '修改实例下用户host信息' (modify user host information under an instance). However, 'host信息' is ambiguous. It does not say whether the tool replaces the host list, adds entries, or removes them, even though the required `hosts` array strongly suggests a wholesale replacement. It also does not distinguish this tool from siblings such as AllowDbUserPrivilege or RevokePostgresqlDbPrivilege.

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?

The description gives no guidance on when to use this tool versus the many sibling privilege tools (Allow/Revoke/Set/UpdateDbUserPrivilege). It also says nothing about prerequisites, such as whether the instance must be in a particular state or whether the caller needs admin rights.

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