Skip to main content
Glama

Set network VPN public access

set_network_vpn_public_access
DestructiveIdempotent

Set WireGuard or IPsec public-source allowlists on a VPN gateway to restrict client access. Preview changes first, then apply with an idempotency key to replace the gateway's access rules.

Instructions

Replace the complete WireGuard/IPsec public-source lists at the VPN gateway generation. Preview the same services with check_network_vpn_public_access first. Omitted services and empty lists remove customer restrictions, potentially expanding access. Only set acknowledge_disconnect=true after approval to disconnect affected clients. Poll gateway public_access for actual applied evidence. 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": {
      "gateway_id": "<gateway_id>",
      "services": "<services>",
      "expected_generation": "<expected_generation>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "set_network_vpn_public_access"
  }
}

Input Schema

NameRequiredDescriptionDefault
servicesYes
gateway_idYesExact lowercase UUID returned by an owned networking resource
idempotencyKeyYesIdempotency-Key for this exact change; preserve it and the unchanged body on uncertain recovery
expected_generationYes
acknowledge_disconnectNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.3.21

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, but the description adds substantial context beyond them: omitted services and empty lists remove customer restrictions and may expand access, backend ownership/feature/2FA-lock enforcement, accepted-but-pending operation semantics, the in_progress/reason_kind distinction between waiting and failure, and a no-automatic-retry policy on transport uncertainty.

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 and the warning about restriction removal are front-loaded, but the polling paragraph is a dense run-on stacking in_progress, reason_code, reason_kind, failure and next_check_seconds into two long sentences. Every fact earns its place, yet the structure is hard to parse and would benefit from separating auth/approval, semantics and polling into distinct clauses.

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 destructive, no-output-schema mutation the description is unusually complete: preview path, permissions, approval, partial-list destructiveness, pending-operation polling protocol, and idempotent recovery. The notable remaining gap is expected_generation (optimistic concurrency) — an agent is told to "read current state first" but not what happens or what to do when the generation is stale.

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 only 40%, so the description carries weight: it explains that services is a complete replacement list (empty/omitted = removal), that acknowledge_disconnect is a deliberate disconnect approval, and that the idempotency key must be preserved on recovery. expected_generation is only alluded to via "at the VPN gateway generation"; staleness/mismatch behavior is never spelled out, which leaves the highest-risk parameter under-explained.

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?

The first sentence gives a specific verb, resource and semantics: "Replace the complete WireGuard/IPsec public-source lists at the VPN gateway generation." It also names the preview sibling, check_network_vpn_public_access, so an agent can distinguish full replacement from a dry run without opening either schema.

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?

Explicit when-to-use routing: preview with check_network_vpn_public_access first, read capabilities/owned state first, obtain approval for the exact change, and only set acknowledge_disconnect=true after approval. It also states the precondition (networking:manage) that gates the call, which is the alternative to simply not calling it.

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