Skip to main content
Glama

gaussdbfornosql__SwitchIpGroup

Configures an IP allowlist or blocklist for load-balanced access to a GaussDB NoSQL instance, replacing prior settings; disable it to remove source IP restrictions.

Instructions

[GAUSSDBFORNOSQL] 设置实例负载均衡的IP访问黑白名单,黑名单、白名单只能选一种,每次调用此接口覆盖之前的设置。关闭后不限制连接的源IP地址。

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": {
      "enabled": "<enabled>",
      "instance_id": "<instance_id>",
      "ip_groups": "<ip_groups>",
      "project_id": "<project_id>",
      "type": "<type>"
    },
    "name": "gaussdbfornosql__SwitchIpGroup"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeYes类型选项,取值: - whiteList:白名单,只允许指定ip或网段访问。 - blackList:黑名单,不允许指定ip或网段访问。
enabledYestrue 开启,false 关闭。
ip_groupsYesIP地址组中包含的IP或网段列表。
project_idYes租户在某一region下的project ID。
instance_idYes实例ID。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that each call overwrites prior settings (destructive replacement), that whitelist and blacklist are mutually exclusive, and that disabling removes all source-IP restriction. It doesn't mention required permissions or whether in-flight connections are affected.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three compact clauses, each carrying distinct information: what is set, the mutual-exclusion constraint, and the overwrite/disable behavior. No filler, and the core purpose is front-loaded.

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

Completeness4/5

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

For a five-parameter, all-required mutation tool with no annotations and no output schema, the description covers the critical behavioral risks. It stops short of describing the response or auth prerequisites, which leaves a small gap given there is no output schema to lean on.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description adds real meaning beyond the schema by explaining that type is mutually exclusive and that enabled=false means no source-IP restriction at all, which the schema only renders as 'true 开启, false 关闭'. The overwrite semantics also clarify that ip_groups replaces rather than appends.

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

Purpose5/5

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

The description states a specific verb and resource: set the IP access whitelist/blacklist for an instance's load balancer. It also names the two mutually exclusive modes, so an agent can tell it apart from the read-only ShowElbIpGroup sibling.

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?

The description gives clear context for when this tool applies: only one of blacklist or whitelist may be chosen, and each call replaces the prior setting. It doesn't explicitly route the agent to a sibling for reading the current configuration, but the setter semantics are unambiguous.

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