vpn_server
Manage incoming VPN servers on TP-Link routers: view or configure OpenVPN, PPTP, L2TP and WireGuard settings, enable or disable services, manage accounts, and inspect or disconnect clients.
Instructions
The router's VPN SERVERS (people dialling in). kind=openvpn|pptp|l2tp|wireguard; action=get | set (settings={...}) | enable | disable (CRITICAL) | accounts | accounts_add (account={...}) | accounts_update (key, account={...}) | accounts_remove (key) | connected | disconnect (key). Secrets masked unless reveal.
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": {
"kind": "<kind>"
},
"name": "vpn_server"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | ||
| kind | Yes | ||
| apply | No | false (default) = dry run: show the plan, diff, warnings and risk, send nothing. true = send it. | |
| action | No | get | |
| reveal | No | Show secrets (passwords/keys) unmasked. | |
| router | No | Which router (see router_status 'routers'); default main. | main |
| account | No | ||
| settings | No | ||
| confirm_token | No | Required with apply=true for CRITICAL changes: the token from the dry run (valid 5 minutes, bound to the exact plan and current router state). |