Skip to main content
Glama

wireguard_create_interface

Create or update a WireGuard interface on MikroTik RouterOS with a tunnel IP, key source, name, and listen port, validated against existing subnets.

Instructions

Create (or update) a WireGuard interface. All values come from the user.

address (REQUIRED, ask the user, never invent): the router's tunnel IP with mask, as '10.10.10.1/24' or '10.10.10.1 255.255.255.0'. Validated and checked for overlap with the router's existing subnets. private_key_source (REQUIRED, ask the user): 'router' = RouterOS creates the interface's own key (never leaves the router). 'user' = the user enters an existing private key (e.g. rebuilding a tunnel). Leave private_key empty: it is entered in a local popup on apply. wg_name, listen_port (REQUIRED, ask the user; RouterOS commonly uses 13231).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNorouter
addressYes
dry_runNo
wg_nameYes
listen_portYes
private_keyNo
trust_as_lanNo
rollback_minutesNo
allow_in_firewallNo
private_key_sourceYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It usefully discloses validation/overlap checks, that 'router' keys never leave the router, and that user-supplied keys arrive via a local popup on apply. However, it omits major behavioral traits encoded as defaults: dry_run=true (nothing actually applied unless changed), rollback_minutes=5, allow_in_firewall=true, and trust_as_lan=false.

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?

Front-loads the purpose, then uses a compact field-by-field list where each item carries substantive information (formats, ask-the-user mandate, key-source branching). Slightly dense but no filler sentences.

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 described. But for a mutating network-configuration tool with no annotations, 10 params, and 0% schema coverage, leaving dry_run and rollback_minutes unexplained leaves an agent unsure what will actually be applied and what safety net exists.

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

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% with 10 parameters, so the description must compensate. It does explain 5 of 10 (address format and validation, private_key_source semantics, private_key handling, wg_name, listen_port) with real added meaning. The remaining 5 — name, dry_run, trust_as_lan, rollback_minutes, allow_in_firewall — are undocumented despite dry_run and rollback_minutes being behaviorally critical.

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 resource ('Create (or update) a WireGuard interface'), which cleanly separates it from the peer-management siblings. The '(or update)' dual purpose adds slight ambiguity but the core operation is unmistakable.

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 operational guidance on required inputs and, notably, a decision rule for private_key_source ('router' vs 'user' with the rebuild-tunnel case). It does not state when this tool should be chosen over alternatives like wireguard_add_peer, but the resource scope makes that implicit.

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