Skip to main content
Glama

gaussdbfornosql__SwitchToMaster

Promotes a standby GaussDB for NoSQL instance to primary within a configured disaster recovery relationship, with an optional force switch when required.

Instructions

[GAUSSDBFORNOSQL] 该接口用于对已经搭建容灾关系的实例,将备实例升级为主实例。

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": "gaussdbfornosql__SwitchToMaster"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNo是否强制备实例升主。
project_idYes租户在某一region下的project ID。
instance_idYes实例ID。

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, and it only discloses the state transition itself. It says nothing about service interruption, whether existing connections are dropped, whether the operation is reversible, or what the 'force' flag changes about behavior.

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 front-loaded sentence with no filler or redundancy. It is efficient, though the brevity contributes to the gaps noted in behavior and parameters rather than reflecting deliberate economy.

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 role-switching DR operation with no annotations and no output schema, the description is too thin: an agent cannot tell whether this is a disruptive failover, what permissions are needed, or what happens on failure. The precondition is the only operationally useful piece of context provided.

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 instance_id, project_id, and force are all documented in the schema. The description adds no meaning beyond that — notably it never explains when the caller should set force to true, which is the one parameter where extra prose would have real value.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('将备实例升级为主实例' – promote the standby instance to primary) scoped to instances with an existing DR relationship. This is far more than a restatement of the name, though it never names a sibling such as SwitchToSlave or SwitchOver to bound the scope explicitly.

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?

Gives a clear precondition for use: the instance must already have a disaster-recovery relationship established, which naturally excludes instances without DR. It stops short of naming alternatives (SwitchToSlave, SwitchOver) or saying when not to use it.

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