Skip to main content
Glama

dws__SwitchOverCluster

Switch a DWS cluster's primary/standby roles to recover from a non-balanced state and return the cluster to an available state.

Instructions

[DWS] 当集群状态为“非均衡”时会出现某些节点主实例增多,从而负载压力较大。这种情况下集群状态是正常的,但整体性能要低于均衡状态。可进行集群主备恢复操作将集群状态切换为“可用“状态。

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__SwitchOverCluster"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.3/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. It implies a state-changing operation (switching the cluster to 'available') but says nothing about disruption, downtime, connection impact, required permissions, reversibility, or how long the switchover takes – all critical for a failover-style operation.

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?

One compact paragraph that moves from condition to consequence to action, with no filler. It could be strengthened by leading with the operation name rather than the unbalanced-state explanation, but it remains efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Wait—reassessing: with no annotations and no output schema, an agent still lacks critical operational detail (disruption, prerequisites, post-conditions beyond the final state name). The description explains the trigger and the end state but not the risk profile of a switchover, so completeness is only partial.

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%, so cluster_id and project_id are already documented in the schema. The description adds no meaning about either parameter, which is acceptable at this coverage level but earns only the baseline score.

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 frames the tool as a scenario (when the cluster state is 'unbalanced', some nodes carry more primary instances) and states that a 'cluster primary/standby recovery operation' can switch the state to 'available'. The action is there but is embedded in the symptom narrative rather than stated up front as 'switch over the cluster', and nothing distinguishes it from siblings such as dws__SwitchFailoverDisaster.

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

Usage Guidelines4/5

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

A clear trigger condition is given: use it when the cluster is in the unbalanced state, and the description notes that this state is normal but has lower overall performance, which explains why you'd act. It stops short of naming alternatives or stating explicit when-not-to-use conditions.

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