manage_wireguard_peer_allowed_ip
Add an allowed IP address to a WireGuard peer or remove an existing one, with optional CIDR/mask handling and a confirmation gate for safe deletions.
Instructions
Add or remove an allowed IP for a WireGuard peer
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": {
"action": "<action>",
"peer_id": "<peer_id>"
},
"name": "manage_wireguard_peer_allowed_ip"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mask | No | Prefix length (e.g., 24). Read from `address` when given in CIDR form; a bare address with no mask becomes a host route (/32 or /128) | |
| descr | No | Optional description (used for create) | |
| action | Yes | Action to perform ('create' or 'delete') | |
| address | No | IP address to allow (required for create). Accepts CIDR ('10.0.0.0/24') or a bare address ('10.0.0.0') | |
| confirm | No | Must be set to True for delete operations. Safety gate for destructive operations. | |
| peer_id | Yes | Parent peer ID the allowed IP belongs to | |
| allowed_ip_id | No | Allowed IP ID (required for delete) | |
| apply_immediately | No | Whether to apply changes immediately |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||