Skip to main content
Glama

gaussdbfornosql__SwitchToSlave

Demote a primary GaussDB NoSQL instance to a standby when a disaster recovery relationship is already configured, using the instance and project IDs.

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

Input Schema

NameRequiredDescriptionDefault
project_idYes租户在某一region下的project ID。
instance_idYes实例ID。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.4/5.0
Behavior3/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 does disclose the core effect (primary is demoted to standby), which is meaningful, but says nothing about whether the operation is disruptive, how long it takes, whether it is reversible, or what permissions are required — all critical for a failover-style 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?

A single sentence with the precondition front-loaded before the action, and no wasted wording. It is terse but not truncated.

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?

There is no output schema and no annotations, so the description is the only source of behavioral information. It covers the action and the prerequisite but omits the operational risk profile (disruption, duration, reversibility) that an agent would need before invoking a DR failover on a live database instance.

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%, with both project_id and instance_id documented in the schema itself. The description adds nothing beyond that, so the baseline score of 3 applies.

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?

The description names a specific verb and resource: demote a primary instance to a standby (将主实例降级为备实例) for an instance that already has a DR relationship. An agent can distinguish this from SwitchToMaster by the direction of the demotion, though the sibling is never named explicitly.

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 states a precondition — the instance must already have a disaster-recovery relationship established — which is useful context for when the call is valid. It gives no exclusions, no mention of SwitchToMaster as the inverse operation, and no guidance on what state the instance must be in.

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