Skip to main content
Glama

vyos_configure_ipsec_site_to_site

Configures a VyOS IPsec site-to-site VPN peer in a single commit, applying authentication, IKE, tunnel, and ESP settings for secure site connectivity.

Instructions

Configure an IPsec site-to-site peer in one commit.

Args: peer: Peer identifier (name or address), e.g. "203.0.113.5". settings: {space-separated path: value} under "vpn ipsec site-to-site peer ", e.g. {"authentication mode": "pre-shared-secret", "authentication pre-shared-secret": "SECRET", "ike-group": "IKE-1", "connection-type": "initiate", "tunnel 0 local prefix": "192.168.0.0/24", "tunnel 0 remote prefix": "192.168.1.0/24", "tunnel 0 esp-group": "ESP-1"}. save: Persist after commit (default False).

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": {
      "peer": "<peer>",
      "settings": "<settings>"
    },
    "name": "vyos_configure_ipsec_site_to_site"
  }
}

Input Schema

NameRequiredDescriptionDefault
peerYes
saveNo
settingsYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose useful behavior: changes are applied atomically in one commit, and 'save: Persist after commit (default False)' reveals that configuration is not persisted unless asked — meaningful for a network device. However it omits whether the commit is auto-confirmed or needs vyos_confirm_commit, whether overwriting an existing peer is destructive, and permission/error behavior.

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

Conciseness5/5

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

Front-loaded one-line purpose followed by terse per-argument notes. The lengthy settings example is justified because the path:value dictionary format is otherwise opaque and unvalidated by the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be explained, and the tricky nested map parameter is well illustrated. Still, for a mutation tool with zero annotations and 0% schema coverage, it should mention prerequisite objects (ike-group, esp-group), commit/confirm workflow, and overwrite semantics for an existing peer.

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 0%, so the description must compensate, and it largely does: it explains that peer is a name-or-address identifier with a concrete example, and that settings is a flat map of space-separated CLI paths to values under 'vpn ipsec site-to-site peer <peer>', illustrated with a full realistic example including the nested 'tunnel 0 ...' paths. It stops short of stating which keys are valid or how conflicting/duplicate paths are handled.

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: configuring a single IPsec site-to-site peer, with the added scope of doing it 'in one commit'. That distinguishes it from the generic batch/other-protocol configure siblings like vyos_configure_openvpn or vyos_configure_wireguard without needing to name them.

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

Usage Guidelines3/5

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

Usage is only implied by the purpose — an agent can infer you use this to add/modify an IPsec site-to-site peer, but there is no explicit when-to-use vs. an alternative (e.g. vyos_configure_batch for bulk edits), no statement of prerequisites such as the referenced ike-group and esp-group having to exist, and no guidance on whether this replaces or merges an existing peer definition.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.