Skip to main content
Glama

security_wireguard_check

Read-only

WireGuard Config Audit — Offline security audit of a WireGuard wg0.conf / wg-quick config (server or client, auto-detected; role= server|client to force). Checks key format (private and preshared keys are never echoed), private key pasted as a peer public key, duplicate peers, AllowedIPs overlap between peers (silent traffic hijack), any-source AllowedIPs on a multi-peer server, full-tunnel IPv6 and DNS leaks, bad Endpoint/ListenPort/MTU, SaveConfig, PostUp hooks that download or pipe to a shell, NAT rules not removed in PostDown, keepalive and missing PresharedKey. Returns PASS/REVIEW/FIX BEFORE DEPLOY/BLOCK, score, grade, findings with fixes, parsed settings and a hardened server+client example. Pass the file in text= (URL-encoded, newlines as %0A). Price: $0.006 USDC (Base, via x402).

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": {
      "text": "<text>"
    },
    "name": "security_wireguard_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes[Interface] Address = 10.8.0.2/32 PrivateKey = YAnz5TF+lXXJte14tji3zlMNq+hd2rYUIgJBgB3fBmk= [Peer] PublicKey = xTIBA5rboUvnH4htodjb6e697QjLERt1NAB4mZqp8Dg= Endpoint = vpn.example.com:51820 AllowedIPs = 0.0.0.0/0

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the readOnly/openWorld/non-destructive annotations: it discloses that private and preshared keys are never echoed (a real privacy guarantee), enumerates the detection classes, describes the response shape (PASS/REVIEW/FIX BEFORE DEPLOY/BLOCK, score, grade, findings with fixes, parsed settings, hardened example), and states the cost ($0.006 USDC via x402) — a payment prerequisite that materially affects invocation.

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-loaded with purpose, then input contract, then outputs and price — a sensible order. The long comma-separated audit checklist is dense and hard to scan, but each item conveys a distinct detection the agent may need to explain to a user, so little is pure padding.

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?

For a single-input audit tool with no output schema, the description covers input format, the full verdict vocabulary, returned artifacts and pricing — everything needed to call and interpret it. The only gap is the phantom 'role' parameter, which contradicts the schema and could prompt an invalid call.

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 one parameter at 100% schema coverage the baseline is 3, but the description adds the non-obvious encoding contract: pass the file in text= as URL-encoded content with newlines as %0A. It also names a role parameter that the schema does not define, which slightly muddies rather than clarifies the single real parameter.

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 ('Offline security audit') and resource ('WireGuard wg0.conf / wg-quick config'), plus scope (server or client, auto-detected). The resource noun alone distinguishes it from the many sibling *_check tools (nginx, openvpn, iptables), and the enumerated checks make the exact remit unambiguous.

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 'FIX BEFORE DEPLOY' framing and the hardened example make the intended pre-deployment use case clear, and it tells the agent exactly how to supply input. However, it never states when NOT to use it or names an alternative (e.g. a generic config linter), and it references a 'role= server|client' switch that does not exist in the schema — a guidance detail an agent cannot act on.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources