Skip to main content
Glama

Set network VPN ipsec tuning

set_network_vpn_ipsec_tuning
DestructiveIdempotent

Configures an IPsec site's PFS, suites, key-exchange groups, and lifetimes from gateway-offered values, restoring defaults with null; read gateway tuning first and poll until applied.

Instructions

Replace an IPsec site's advanced tunnel choices using the gateway generation. Read gateway ipsec_tuning for currently offered values and the site's crypto profile; pinned crypto conflicts with PQC or legacy compatibility. tuning=null or an empty object restores automatic defaults; omitted members also become automatic. The numeric bounds in the schema are the platform's outer limits, not the offered set: the gateway's ipsec_tuning lists the key exchange groups, suites and lifetime ranges offered now, and the backend refuses others with vpn_ipsec_tuning_not_allowed. Changes can interrupt negotiation. Poll the operation and gateway until tuning_applied is true; never supply a PSK or private key. 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>",
      "expected_generation": "<expected_generation>",
      "tuning": "<tuning>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "set_network_vpn_ipsec_tuning"
  }
}

Input Schema

NameRequiredDescriptionDefault
tuningYes
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
expected_generationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.3.21

TDQS

A4.4/5.0
Behavior5/5

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

Annotations cover the write/destructive/idempotent profile, and the description adds substantial behavior beyond them: tuning=null or {} restores automatic defaults, omitted members become automatic, out-of-offer values are refused with vpn_ipsec_tuning_not_allowed, an accepted operation is pending rather than proof of connectivity, and polling semantics (in_progress, reason_kind, reason_code, next_check_seconds) are spelled out. It also states the safety constraint that a PSK or private key must never be supplied, and the no-automatic-retry rule 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 decision-critical facts (what it replaces, defaults semantics, offered-set constraint, scope requirement) are front-loaded, but the definition runs long and the polling paragraph is generic boilerplate repeated across tools, restating in_progress/reason_code several times. Some bounds information duplicates what the schema already documents.

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?

No output schema exists, so the description must carry return and recovery semantics — and it does: what the operation/resource returns, how to poll, how to distinguish waiting from failure, and how to recover from transport uncertainty with the original idempotency key. Permission, ownership, feature and 2FA enforcement are all covered.

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%, with the nested tuning members (pfs, suites, nat_traversal) and expected_generation undocumented in the schema. The description compensates by explaining that null/empty tuning restores automatic defaults and omitted members become automatic, and by clarifying that schema bounds are outer limits while the gateway's ipsec_tuning lists what is actually offered. It does not explain expected_generation's role beyond the passing phrase 'using the gateway generation'.

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?

Opens with a specific verb and resource: 'Replace an IPsec site's advanced tunnel choices using the gateway generation', which distinguishes it from siblings like rotate_network_vpn_ipsec_key or set_network_vpn_site_options. It never explicitly names an alternative tool, but the resource and mechanism are unambiguous.

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 prerequisites (read gateway ipsec_tuning and the site's crypto profile first, read current capabilities and owned resource state, obtain approval for the exact change), an exclusion (pinned crypto conflicts with PQC or legacy compatibility), and a warning that changes can interrupt negotiation. The required scope distinction between networking:read and networking:manage is likewise 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