Skip to main content
Glama

add_wireguard_peer

Add a WireGuard peer to a MikroTik interface by specifying its public key and allowed IP addresses. Configure endpoint, keepalive, and preshared key for secure VPN connectivity.

Instructions

Adds a WireGuard peer (with public key and allowed addresses) to an interface on the MikroTik device.

Notes: allowed_address: CIDR, comma-separated for multiple e.g. "10.0.0.2/32" or "10.0.0.0/24,192.168.0.0/24" endpoint_address: remote host IP or hostname e.g. "203.0.113.1" persistent_keepalive: seconds as string e.g. "25"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
deviceNo
commentNo
disabledNo
interfaceYes
public_keyYes
endpoint_portNo
preshared_keyNo
allowed_addressYes
endpoint_addressNo
persistent_keepaliveNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

Annotations indicate destructiveHint=false and openWorldHint=false, but the description adds little behavioral context beyond the action. It does not disclose prerequisites (e.g., interface must exist), duplicate handling, reversibility, or permission requirements. The notes clarify parameter formats, not side effects or operational constraints.

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?

The purpose is stated in one concise sentence, and the notes are formatted as a compact bulleted list with relevant examples. There is no redundant filler, and the structure is easy to scan and front-loaded with the core action.

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

Completeness2/5

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

For a create tool with 10 parameters and no schema descriptions, the description covers the basic purpose and a few parameter formats but lacks usage context, prerequisites, and error/duplicate behavior. It leaves the agent uncertain about preconditions (e.g., existing interface) and how this tool interacts with sibling tools like update_wireguard_peer.

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?

The description adds concrete format examples for allowed_address (CIDR, comma-separated), endpoint_address (hostname/IP), and persistent_keepalive (seconds as string), which the schema does not provide. However, it omits clarifications for other important parameters like public_key (base64 format) and preshared_key, and with 10 parameters and 0% schema description coverage, this is only partial compensation.

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?

The description clearly states the action ('Adds a WireGuard peer') with specific attributes (public key and allowed addresses) and target (interface on the MikroTik device). This distinguishes it from sibling tools like update, remove, list, get, enable, and disable by using the 'add' verb and specifying the resource.

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

Usage Guidelines2/5

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

The description provides no explicit guidance on when to use this tool versus alternatives. It does not mention that update_wireguard_peer should be used for existing peers, nor does it state prerequisites such as requiring an existing WireGuard interface. The verb 'adds' implies creation, but there are no exclusions or alternative tool references.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jeff-nasseri/mikrotik-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server