Skip to main content
Glama

Set network VPN site main line

set_network_vpn_site_main_line
DestructiveIdempotent

Selects which IPsec line (1 or 2) a VPN site uses as its main connection, using the gateway generation and optionally applying DPD to both lines.

Instructions

Choose line 1 or 2 as the main IPsec line using the gateway generation; optional DPD applies to both. Confirm routing interruption and inspect the returned peer/operation. 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>",
      "line": "<line>",
      "expected_generation": "<expected_generation>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "set_network_vpn_site_main_line"
  }
}

Input Schema

NameRequiredDescriptionDefault
lineYes
peer_idYesExact lowercase UUID returned by an owned networking resource
gateway_idYesExact lowercase UUID returned by an owned networking resource
dpd_secondsNo
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.2/5.0
Behavior5/5

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

Goes well beyond annotations (destructiveHint=true, idempotentHint=true) by disclosing the auth model (networking:read vs networking:manage, full/read defaults insufficient), backend ownership and 2FA lock enforcement, and the pending-operation semantics of the response. The polling contract, reason_code preservation, and no-auto-retry rule are exactly the operational detail annotations cannot carry.

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, but the second half is a long run-on that mixes lifecycle, error taxonomy, and retry policy in dense clauses. Some of it is valuable, yet fragments like 'Preserve reason_code' and the nested polling sentence could be tightened 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, six-parameter mutation with no output schema, the definition covers authorization, concurrency, interruption risk, result interpretation, and recovery from transport failure. An agent has everything needed to call it and read the outcome correctly.

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?

With 50% schema coverage, the description compensates for the undocumented fields: line is 1 or 2, dpd_seconds is optional and applies to both lines, and expected_generation is framed as the gateway generation used to guard the change. It does not clarify expected_generation's mismatch behavior, leaving a small gap.

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?

States a specific verb and target: choose line 1 or 2 as the main IPsec line, scoped by gateway generation. That reads clearly against siblings like add_network_vpn_site_line and remove_network_vpn_site_second_line, though it never names an alternative, so differentiation is inferred rather than declared.

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 concrete preconditions: read current capabilities and owned resource state first, obtain approval for the exact change, and confirm the routing interruption. It does not name which sibling to use when the two lines are not yet configured, so the boundary with add/remove line tools is left implicit.

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