Skip to main content
Glama

rds__SetReadOnlySwitch

Set a Huawei Cloud RDS database user to read-only or restore write access by specifying the instance, project, and desired read-only flag.

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

Input Schema

NameRequiredDescriptionDefault
readonlyYes是否设置为只读权限
project_idYes租户在某一region下的project ID。获取方法请参见获取项目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 disclosure burden for a mutation tool. It does not state whether the change is reversible, whether existing connections are affected, what permissions are required, or what the response contains — only that a read-only switch is being set.

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 single clause is front-loaded and free of padding, so it is not verbose. However, the brevity comes at the cost of substance: one short phrase is underspecified for a three-parameter write operation rather than efficiently 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?

This is a mutating RDS operation with no annotations and no output schema, so the description must supply the missing behavior context, and it does not. An agent cannot tell from the definition alone what the switch affects or what safety considerations apply.

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 (readonly, project_id, instance_id) is documented in the schema with examples, so the baseline of 3 applies. The description adds no extra meaning about the boolean semantics, such as whether false restores read-write access.

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 verb+resource ('设置数据库用户只读' — set database user read-only), which is better than a tautology. However, the only identifier required is instance_id plus a boolean, so it is unclear whether the switch applies to the instance, all users, or one specific user, and nothing distinguishes it from siblings such as rds__SetDatabaseUserPrivilege or rds__UpdateReadWeight.

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 phrase '根据业务需求' (according to business needs) gestures at a use case but gives no concrete conditions, no prerequisites, and no mention of when to prefer an alternative tool. There is no explicit when-to-use or when-not-to-use guidance.

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