Skip to main content
Glama

Set public address outgoing source

set_public_address_outgoing_source
Destructive

Select an owned public address as a VPS's source for new outgoing IPv4 connections, or revert to the server's own IP when outbound traffic must appear from that address.

Instructions

Make an owned additional address the source of a server's new outgoing IPv4 connections (enabled=true), or go back to the server's own IP (enabled=false). Free. Only for an address attached to the public interface of a VPS (target.kind server_public) whose target.carrier.outgoing.offered is true; a server has at most one such address, so switching another one on replaces it. Replies, IPv6, sockets a program binds itself and NAT-ed container traffic do not change; the other side of a new outgoing connection sees the chosen address. The same value again answers outcome unchanged. When the address leaves the server the platform first moves the outgoing source back to the server's own IP. Refusals: 409 public_address_outgoing_not_on_server, public_address_outgoing_node_not_ready, public_address_outgoing_server_type_not_available (Cloud VPS), public_address_change_pending; 423 while the server's two-factor lock is closed. Accepted is not applied: read target.carrier.outgoing.state with get_network_public_address. Requires explicit networking:read for reads or networking:manage for changes; full/read defaults do not grant networking. The backend enforces ownership, feature availability and service 2FA locks. Read current capabilities and owned resource state first; obtain approval for the exact change. An accepted operation is pending, not proof of connectivity. Poll the returned operation/resource on its in_progress flag, waiting next_check_seconds between reads: while in_progress is true its reason_code is what is awaited (reason_kind waiting, e.g. a queued or pending reason, or a control plane that has not answered yet), never an error; only in_progress false with reason_kind failure is a failure. Preserve reason_code. On transport uncertainty inspect state and reuse only the original key and unchanged request; never automatically retry.

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": {
      "address_id": "<address_id>",
      "enabled": "<enabled>"
    },
    "name": "set_public_address_outgoing_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
enabledYes
address_idYesExact lowercase UUID returned by an owned networking resource

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.3.21

TDQS

A4.3/5.0
Behavior4/5

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

Adds substantial behavior beyond the annotations: replacement of the existing source, what does NOT change (IPv6, replies, self-bound sockets, NAT-ed containers), automatic revert to the server IP when the address leaves, 409/423 refusal codes, required scope networking:manage vs networking:read, and the accepted-vs-applied polling contract. One tension: 'the same value again answers outcome unchanged' reads as idempotent while the annotation says idempotentHint=false (the description only promises the answer is unchanged, not that no side effect occurs).

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?

Purpose and scope are front-loaded, but the single block then mixes eligibility, refusal codes, scope requirements, and a long polling/retry protocol, with some restatement ('accepted is not applied' / 'an accepted operation is pending, not proof of connectivity'). It is informative but dense and hard to scan for an agent that only needs the call contract.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 2-parameter mutation with no output schema, the definition covers prerequisites, replacement semantics, non-affected traffic, permissions, refusal reasons, and exactly how to determine success (poll in_progress, reason_kind, next_check_seconds). An agent has everything needed to call it and interpret the result.

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 coverage is 50% and the undocumented parameter is precisely the one the description explains: enabled=true selects this address as outgoing source, enabled=false reverts to the server IP. It also clarifies address_id must be an owned address on the correct interface kind. That meaning goes well beyond the schema's bare boolean.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a concrete verb and resource ('make an owned additional address the source of a server's new outgoing IPv4 connections') and immediately defines the inverse operation (enabled=false returns to the server's own IP). This is clearly distinguishable from siblings like attach_public_address_to_server or get_network_public_address.

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

Usage Guidelines4/5

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

Gives explicit eligibility conditions (only for an address attached to the public interface of a VPS, target.kind server_public, target.carrier.outgoing.offered true) and names get_network_public_address as the read path for state. It also states the replacement rule when another address is switched on. What it lacks is an explicit 'do not use this if...' pointer to an alternative tool for cases outside these preconditions.

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