Skip to main content
Glama

dws__CancelReadonlyCluster

Restores write access by canceling a DWS cluster's read-only state, allowing database operations to resume after issues such as high disk usage are addressed.

Instructions

[DWS] 当集群进入只读状态时,无法进行数据库相关操作,用户可以在管理控制台解除集群的只读状态。触发只读状态可能是由于磁盘使用率过高,因此需要对集群数据进行清理或扩容。 - 解除只读支持1.7.2及以上版本。

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

Input Schema

NameRequiredDescriptionDefault
cluster_idYes**参数解释**:
project_idYes**参数解释**:

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden; it does disclose the precondition (cluster must already be read-only), the root cause to address (clean up or expand disk), and the minimum supported version. It does not say what permissions are needed, whether the call is idempotent or reversible, or what happens if disk usage is still high — gaps that matter for a state-changing call.

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?

Three sentences, but the middle one drifts into console workflow and remediation advice rather than stating the tool's action and its inputs. The operative information (version requirement) is buried at the end behind background explanation.

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 two-parameter state-changing call with no annotations and no output schema, the definition covers the precondition and version constraint but omits permissions, idempotency, and expected outcome. It is enough to attempt a call but not enough to call it confidently in edge cases.

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 coverage is nominally 100%, but both parameter descriptions are empty placeholders ('**参数解释**:'), so the schema conveys nothing beyond names and types. The tool description adds no meaning for cluster_id or project_id, leaving the agent to infer that they are simply the target cluster and project. Baseline 3 applies since no parameters are undocumented, but nothing is enriched.

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 explains the read-only cluster state and its cause (high disk usage) but never plainly states that this tool performs the cancellation — it instead says the user can lift read-only state in the management console, which reads like console guidance rather than an API action. The tool's actual effect is only inferable from the name 'CancelReadonlyCluster'. An agent can guess the purpose but the verb is not asserted.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives the triggering condition (cluster has entered read-only state) and a version prerequisite (1.7.2+), which is real when-to-use guidance. It offers no exclusion or alternative path (e.g., when to fix capacity instead of calling this), and the disk-usage note is advisory rather than routed.

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