Skip to main content
Glama

Attach private network port

attach_private_network_port
DestructiveIdempotent

Attach an existing owned service to a private network, automatically allocate or specify a fixed IPv4, and poll the returned operation to verify the pending attachment.

Instructions

Attach an eligible existing owned service to a private network with port_intent_ready=true; omit ipv4 for automatic allocation or pass a fixed usable address. Check list_network_attachment_candidates for this network and service first, including pagination and attachment_mode. Set restart=true only after the user approves a required restart. An accepted attach is pending: it returns the port's reserve operation (queued with private_port_apply_pending; do not assume a duration) - poll it with get_networking_operation on in_progress, read its activation_operation_id once the activation that finishes the attachment exists, and verify the final port and service attachment state. Honor this endpoint's own refusal and reason_code. 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": {
      "network_id": "<network_id>",
      "service_id": "<service_id>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "attach_private_network_port"
  }
}

Input Schema

NameRequiredDescriptionDefault
ipv4No
restartNoOnly after the user authorizes a required restart from attachment-candidates; omit otherwise
network_idYesExact lowercase UUID returned by an owned networking resource
service_idYes
idempotencyKeyYesIdempotency-Key for this exact change; preserve it and the unchanged body on uncertain recovery

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.3.21
    • addedInput schema / properties / ipv4 / pattern
      Added value: +"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"
  2. First observedv2.3.16

TDQS

A4.5/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing that acceptance only yields a pending reserve operation, that in_progress with reason_kind waiting is not an error, that failure requires in_progress false with reason_kind failure, plus the auth scopes (networking:read / networking:manage) and backend enforcement of ownership and 2FA locks. The idempotency and no-auto-retry recovery rule is also spelled out. Minor deduction for restating the pending/polling cycle twice in slightly different words.

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?

Front-loaded with the action and preconditions, which is good, but the middle is dense and repetitive: the pending-operation and polling rules are stated twice ("An accepted attach is pending... poll it with get_networking_operation" then "An accepted operation is pending, not proof of connectivity. Poll the returned operation/resource..."). The attributes could be consolidated without losing meaning.

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 destructive, idempotent mutation with no output schema and 60% parameter coverage, the definition covers the full lifecycle an agent needs: prerequisite checks, approval gate, accepted-but-pending semantics, poll cadence via next_check_seconds, reason_code preservation, and transport-failure recovery. Nothing essential is missing.

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 60%, and the description compensates for the gaps: ipv4 has no schema description yet the text explains omitting it triggers automatic allocation and passing a fixed usable address is the alternative; restart is gated on user approval of a required restart. idempotencyKey semantics (preserve original key and unchanged body) reinforce the schema text. network_id and service_id add nothing beyond the schema, so not a full 5.

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 specific verb and resource ("Attach an eligible existing owned service to a private network") plus a hard precondition (port_intent_ready=true). The operation is clearly distinguished from sibling mutations such as detach_private_network_port, retry_private_network_port and list_network_attachment_candidates.

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

Usage Guidelines5/5

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

Gives explicit ordering: check list_network_attachment_candidates for this network and service first, including pagination and attachment_mode. It also states conditional rules — omit ipv4 for automatic allocation, set restart=true only after user approval — and names get_networking_operation as the poll target, which is the alternative needed after the call.

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