Skip to main content
Glama

hcloud_server_attach_to_network_action

Attaches a server to a private network to add an internal ethernet interface with an auto-assigned or requested IP, optionally including additional alias IPs.

Instructions

Attach a Server to a Network

Attaches a Server to a network. This will complement the fixed public Server interface by adding an additional ethernet interface to the Server which is connected to the specified network.

The Server will get an IP auto assigned from a subnet of type server in the same network_zone.

Using the alias_ips attribute you can also define one or more additional IPs to the Servers. Please note that you will have to configure these IPs by hand on your Server since only the primary IP will be given out by DHCP.

Operation specific errors

Status

Code

Description

422

server_already_attached

The server is already attached to the network

422

ip_not_available

The provided Network IP is not available

422

no_subnet_available

No Subnet or IP is available for the Server within the network

422

networks_overlap

The network IP range overlaps with one of the server networks

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations, the description discloses important behavior: an additional ethernet interface is added, an IP is auto-assigned from a subnet of type 'server' in the same network_zone, and alias IPs must be configured manually because only the primary IP is DHCP-provided. The operation-specific error table adds valuable failure-mode context.

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?

The description is front-loaded with the core action, then adds concise behavioral notes and a scannable error table. Every section contributes useful information without redundant restatement.

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 mutating action tool with annotations, no output schema, and nested parameters, the description covers side effects, IP assignment rules, and known 422 errors well. It does not describe the returned action object or wait behavior, but the wait parameter is already documented in the schema.

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 description coverage is 67%, and the description meaningfully extends the schema for alias_ips by warning that those IPs must be configured manually on the server. It also reinforces auto-assignment semantics for IPs and subnet zones, though some nested parameter details remain schema-only.

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 ('Attach a Server to a Network') and explains the resulting interface/network relationship. It is clear what the tool does, but it does not explicitly differentiate itself from the sibling detach or load-balancer attach tools.

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 by the verb and the note that it complements the fixed public interface, but there is no explicit guidance on when to use this versus hcloud_server_detach_from_network_action or hcloud_load_balancer_attach_to_network_action. No exclusions or prerequisites are stated.

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