Skip to main content
Glama

gaussdbfornosql__ShowInstanceRole

Fetch primary/standby role information for a disaster recovery instance to confirm its status before promoting a standby or demoting a primary.

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

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

A3.6/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. The verb 获取 implies a read-only query and the text explains the result feeds later role-change calls, but it says nothing about permissions required, whether the call is idempotent, or what happens if the instance is not a DR instance — the minimum viable disclosure for a simple read.

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 that front-loads the action and then explains downstream use, with essentially no wasted wording. The [GAUSSDBFORNOSQL] prefix is namespace noise rather than substance, keeping it just short of a 5.

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 read call with no output schema, the description covers purpose and the intended follow-on usage. The remaining gap is that it does not state whether the instance must be a DR instance or what an agent should expect from the response, leaving some ambiguity for a generic instance_id parameter.

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 both project_id and instance_id are already fully documented in the schema. The description adds no per-parameter meaning (e.g., whether instance_id must specifically be a DR instance), so the baseline 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 (获取 / obtain) and resource (容灾实例主/备角色信息 / DR instance primary-standby role info), which is concrete and unambiguous. It falls short of a 5 because it does not distinguish this tool from related siblings like ShowJobRolePermission or ShowRole beyond the DR-instance framing.

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?

It gives clear usage context: retrieve the role first, then call the DR standby-to-primary promotion and primary-to-standby demotion interfaces. That sequencing constraint is helpful, but it offers no explicit when-not-to-use guidance and does not name the alternative tools an agent might pick instead.

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