Skip to main content
Glama

nacos_update_instance

Update a Nacos service instance's traffic weight, enabled status, and metadata to control load balancing or isolate an instance without restarting services.

Instructions

动态更新微服务实例状态(调整流量权重 0.0~1.0、在线/隔离下线开关 enabled、元数据)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ipYes目标实例 IP 地址
portYes目标实例端口号
weightNo新权重值,取值范围 0.0 ~ 1.0
enabledNo是否接受流量调用(true: 启用上线; false: 隔离下线)
metadataNo更新或覆盖的实例扩展元数据
ephemeralNo实例是否为临时节点
groupNameNo微服务分组,默认 DEFAULT_GROUP
clusterNameNo集群名称,默认 DEFAULT
namespaceIdNo命名空间 Tenant ID,留空或 public 为公共空间
serviceNameYes微服务名称 (Service Name)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does disclose real behavioral meaning for two fields (weight must stay in 0.0~1.0; enabled=false means the instance is isolated and taken offline), which is genuinely useful. But it omits permissions/auth requirements, what happens to the instance if the update fails, the effect on ephemeral nodes, and whether unspecified fields are left untouched.

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, front-loaded sentence with no filler. The parenthetical field list is slightly dense but each item is informative rather than redundant.

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 10-parameter mutation tool with no annotations and no output schema, the description is minimally viable. It identifies the update target and the three most consequential fields, but leaves the agent without guidance on preconditions, failure behavior, or the ephemeral/metadata interaction.

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 all 10 parameters are already documented in the schema. The description restates the weight range and the enabled boolean semantics but adds no syntax, defaults, or formats beyond what structured data supplies. 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?

States a specific verb and resource ('动态更新微服务实例状态') and enumerates the mutable facets (weight, enabled switch, metadata), which clearly separates it from nacos_register_instance / nacos_deregister_instance. It stops short of naming siblings or explicitly contrasting with registration/deregistration.

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?

Usage is implied: this mutates an already-registered instance rather than adding/removing one. However there is no explicit when-to-use, no statement of prerequisites (the instance must exist), and no alternative routing such as deregister+register for ephemeral changes.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.