Skip to main content
Glama

vyos_configure_wireguard

Configures a VyOS WireGuard interface and its peers in one commit, with optional post-commit save, to set up or update VPN connectivity.

Instructions

Configure a WireGuard interface and its peers in one commit.

Generate a key-pair first with vyos_generate(path="pki wireguard key-pair").

Args: interface: WireGuard interface name, e.g. "wg0". address: Interface address, e.g. "10.0.0.1/24". private_key: The interface private key. listen_port: UDP listen port. peers: Map of peer name -> settings, e.g. {"to-site-b": {"public-key": "...", "allowed-ips": "10.0.0.2/32", "address": "203.0.113.5", "port": "51820", "persistent-keepalive": "15"}}. "allowed-ips" accepts a single value; pass a list via extra batch calls for multiple. Nested keys may be space-separated. 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": {
      "interface": "<interface>"
    },
    "name": "vyos_configure_wireguard"
  }
}

Input Schema

NameRequiredDescriptionDefault
saveNo
peersNo
addressNo
interfaceYes
listen_portNo
private_keyNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden and does meaningful work: it discloses that the interface and peers land in a single commit, and that persistence only happens when save=True (default False), so changes are otherwise volatile. It omits what happens on re-invocation (merge vs replace) and any failure/rollback behavior.

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 one-line purpose is front-loaded, followed by the prerequisite, then a structured Args block. The peer example is long but conveys the nested shape and caveats that the schema cannot express; a slightly terser example would lose little.

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?

Output schema exists, so return values need no explanation, and every input is described with a prerequisite and commit/save semantics. The remaining gap is idempotency: it does not say whether calling twice replaces peers, merges them, or errors.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/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 documents all six parameters with types and examples. It goes further than restating names by explaining nested peer setting keys, the allowed-ips single-value limitation with a workaround, and space-separated nested keys.

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?

"Configure a WireGuard interface and its peers in one commit" names a specific verb, resource, and scope (interface plus peers atomically). It clearly distinguishes the task from generic siblings like vyos_configure_interface, though it never names that alternative explicitly.

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?

The description gives an explicit prerequisite and cross-tool routing: generate the key-pair first with vyos_generate(path="pki wireguard key-pair"). It does not state when to prefer this over vyos_configure_interface or vyos_configure_batch, so there is no real when-not guidance.

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