Skip to main content
Glama

hcloud_load_balancer_add_target_action

Adds a server, label selector, or IP target to a Hetzner Cloud Load Balancer, optionally using the private IP and polling the action result.

Instructions

Add Target

Adds a target to a Load Balancer.

Operation specific errors

Status

Code

Description

422

ip_not_in_vswitch_subnet

The IP you are trying to add does not belong to the vswitch subnet of the attached network

422

ip_not_owned

The IP you are trying to add as a target is not owned by the Project owner

422

ip_not_assigned_to_server

The specified IP is neither the Primary IPv4 address nor in the IPv6 subnet of the given Server

422

load_balancer_public_interface_disabled

The Load Balancer's public network interface is disabled

422

load_balancer_not_attached_to_network

The Load Balancer is not attached to a network

422

network_has_no_vswitch_subnet

The given IP is private but attached network does not have a vswitch subnet

422

resolve_cloud_private_targets_error

The server you are trying to add as a target is not attached to the same network as the Load Balancer

422

resolve_cloud_public_targets_error

The server that you are trying to add as a public target does not have a public IPv4 address

422

target_already_defined

The Load Balancer target you are trying to define is already defined

Input Schema

NameRequiredDescriptionDefault
idYesID of the Load Balancer.
bodyYes
waitNoPoll the resulting action until success/error or timeout.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and openWorldHint=true, so the mutation profile is known. The error table adds real value by enumerating the constraint states that cause failure (ip_not_owned, load_balancer_not_attached_to_network, target_already_defined). However, it does not explain the returned action object, the effect of the wait flag, or whether re-adding a removed target behaves differently.

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 purpose is front-loaded in one sentence, which is good. The nine-row error table dominates the description and is largely reference material that could be deferred to documentation; it earns its place only partially.

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?

With no output schema, the description should say what the call returns (an action object) and how the wait parameter changes behavior. It covers failure modes well but leaves the success path and the relationship between target types (server/label_selector/ip) unexplained.

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 67%, which is moderate, and the schema itself documents id, body, and wait thoroughly. The description adds no parameter-level meaning directly, though the error codes (ip_not_in_vswitch_subnet, ip_not_assigned_to_server) implicitly reinforce the semantics of the ip and server target fields.

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 resource: "Adds a target to a Load Balancer." An agent can tell what it does immediately. It does not distinguish itself from the sibling hcloud_load_balancer_remove_target_action or hcloud_load_balancer_add_service_action, so it stops 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 Guidelines2/5

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

There is no explicit guidance on when to use this tool versus alternatives such as remove_target or add_service. The 422 error table implies preconditions (LB attached to network, public interface enabled, server on same network), but these are failure modes rather than usage instructions.

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