Skip to main content
Glama

Rotate network VPN ipsec key

rotate_network_vpn_ipsec_key
DestructiveIdempotent

Rotate an IPsec site's pre-shared key with a customer-generated X25519 public key, then consume the new sealed peer configuration once to update the VPN peer.

Instructions

Rotate an IPsec site's pre-shared key. Supply a fresh customer-generated X25519 public reveal key, keep its private half outside MCP, then consume the new sealed material once with take_network_vpn_peer_config line=1. The old key stops authenticating new sessions after apply; inspect the operation. WireGuard peers are refused. 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>",
      "peer_id": "<peer_id>",
      "reveal_public_key": "<reveal_public_key>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "rotate_network_vpn_ipsec_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
peer_idYesExact lowercase UUID returned by an owned networking resource
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
reveal_public_keyYesCustomer-generated one-time X25519 PUBLIC key only. Keep its private key outside MCP; needed to decrypt the sealed configuration.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.3.21

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare destructive=true and idempotent=true, and the description still adds substantial non-redundant behavior: the old key stops authenticating new sessions after apply, permission scopes required, backend ownership/feature/2FA enforcement, and that acceptance is a pending operation rather than proof of connectivity. It stops short of stating anything about reversibility or how to restore a prior key, which is the one gap for a destructive rotation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core action and its constraints lead, and every sentence is operationally relevant. The polling paragraph is longer than necessary — the in_progress/reason_kind rules could be tightened — and it dominates the second half of the description.

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?

There is no output schema, yet the description explains the return shape (operation/resource, in_progress flag, next_check_seconds, reason_code/reason_kind), how to poll it, and the retry discipline on transport uncertainty. For a destructive 4-parameter mutation this covers everything an agent needs 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 100%, so the schema carries the baseline. The description still adds meaning the schema cannot, clarifying that reveal_public_key is one-time, public-only, customer-generated and exists to decrypt the sealed material, and reinforcing that idempotencyKey and the unchanged body must be preserved on uncertain recovery. gateway_id and peer_id meaning is left entirely to the schema.

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 states a precise verb and resource ('Rotate an IPsec site's pre-shared key') and immediately bounds the scope by naming what is excluded ('WireGuard peers are refused') and which sibling consumes the result ('take_network_vpn_peer_config line=1'). An agent can distinguish this from sibling key/tuning operations without opening any 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?

It specifies prerequisites ('Read current capabilities and owned resource state first; obtain approval for the exact change'), the required input posture (customer-generated X25519 public key with the private half kept outside MCP), the follow-up tool and even its parameter, and the refusal case. Both when-to-use and how-to-sequence are explicit.

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