Skip to main content
Glama

gaussdb__SetGaussMySqlProxyWeight

Configure read/write splitting weights for a GaussDB MySQL proxy by assigning master and read-only node weights to control query distribution.

Instructions

[GAUSSDB] 设置读写分离权重。

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>",
      "proxy_id": "<proxy_id>"
    },
    "name": "gaussdb__SetGaussMySqlProxyWeight"
  }
}

Input Schema

NameRequiredDescriptionDefault
proxy_idYes数据库代理ID,严格匹配UUID规则。
project_idYes租户在某一region下的project ID。
instance_idYes实例ID,严格匹配UUID规则。
master_weightNo主节点权重
readonly_nodesNo只读节点权重配置信息

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.8/5.0
Behavior2/5

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

With no annotations, the description carries the full burden of describing behavior, but it discloses almost nothing. "设置" implies a mutation, but the description does not say whether the change takes effect immediately, whether the weights are relative or absolute, what constraints apply, or what happens if some readonly nodes are omitted. For a mutation tool with 5 params and no annotation coverage, this is a significant gap.

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

Conciseness3/5

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

The description is one short, front-loaded sentence with no wasted words. But it is minimal to the point of under-specification rather than genuine conciseness; it is a title restated with a language tag and contains nothing about usage or behavior.

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?

This is a 5-parameter write operation with a nested readonly_nodes array, no annotations, and no output schema, so the description is the only text that can explain behavior. It therefore leaves the agent without the prerequisites, effect semantics, and weight constraints it needs to invoke this tool correctly.

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 the schema already documents each parameter, including the master_weight and readonly_nodes structure, and the UUID matching rules. The description adds no meaning beyond the schema, so the baseline 3 for high coverage is appropriate.

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 gives a specific verb and a specific resource: "设置" (set) "读写分离权重" (read/write splitting weights). That is clearly more than a tautology of the tool name, but it names no sibling and does not distinguish this tool from ModifyGaussMySqlProxyRouteMode, which also changes how read/write traffic is routed.

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

Usage Guidelines2/5

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

The description says nothing about when to use this tool, what it requires beforehand, or when to use an alternative. It never states that the proxy must already exist, or that read/write splitting must be enabled, so the agent has to infer these from the schema (proxy_id, master_weight, readonly_nodes).

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