Skip to main content
Glama

nacos_register_instance

Register a new microservice instance in Nacos using service name, IP, and port; set weight, health, metadata, namespace, cluster, and persistent or ephemeral mode.

Instructions

向微服务注册新实例(遵循 ADR-0002 规范,默认采用持久化模式 ephemeral=false,可显式声明为临时节点)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ipYes实例 IP 地址(如 192.168.1.10)
portYes实例监听端口号
weightNo负载均衡权重,取值范围 0.0 ~ 1.0,默认 1.0
enabledNo是否接受流量调用(true: 启用; false: 隔离下线,默认 true)
healthyNo实例初始健康度(默认 true)
metadataNo实例自定义扩展元数据键值对 (Key-Value)
ephemeralNo是否为临时节点(根据 ADR-0002 规定默认 false 为持久化节点;若为客户端自注册可显式传 true)
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?

With no annotations, the description must carry the behavioral burden. It usefully discloses that nodes are persistent by default (ephemeral=false per ADR-0002) and can be made ephemeral, which is meaningful write-behavior context. It still omits idempotency, behavior on duplicate registration, required permissions, and reversibility.

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?

It is a single, front-loaded sentence with no redundant filler; the parenthetical ADR-0002 reference is functional rather than wasteful. Slightly denser than ideal but well structured.

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 an 11-parameter mutation tool with nested metadata, no annotations, and no output schema, the description covers only the persistence default. Registration semantics such as duplicate handling, permissions, and return behavior are left unaddressed, so it is adequate but incomplete.

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 all 11 parameters including the ephemeral default. The description adds no parameter semantics beyond what the schema states, so the baseline 3 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 states a specific verb and resource ('向微服务注册新实例' – register a new instance), which is clearly distinguishable from siblings like nacos_deregister_instance and nacos_update_instance. However, it never names an alternative tool or explicitly contrasts its role with them, so it falls short of a 5.

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 only implied by the verb 'register'; the description adds no explicit when-to-use, when-not-to-use, or sibling comparison. The note about ephemeral=false being the default and the option to declare ephemeral explicitly gives some operational context, but not enough to count as real routing guidance.

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