Set advertised / accepted routes
tailscale_set_routesAdvertise subnet routes from this host and toggle accepting peer routes in Tailscale. Requires approval due to connectivity changes.
Instructions
Advertise subnet routes from this host and/or toggle accepting routes advertised by others (tailscale set --advertise-routes / --accept-routes). Advertised subnet routes still need approval in the admin console. ⚠ Route changes alter connectivity, so this requires user approval. Pass an empty advertiseRoutes array to withdraw all advertised routes. Returns the resulting status.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "tailscale_set_routes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| acceptRoutes | No | Whether to accept subnet routes advertised by peers. | |
| advertiseRoutes | No | CIDRs to advertise (e.g. 10.0.0.0/24); [] withdraws all. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| os | No | ||
| state | Yes | running | running_local_only | stopped | needs_login | starting | no_state | daemon_unreachable | unknown | |
| health | Yes | ||
| authURL | No | ||
| dnsName | No | ||
| version | No | ||
| hostName | No | ||
| connected | Yes | True only when BackendState=Running AND Self.Online. | |
| keyExpiry | No | ||
| keyExpired | Yes | ||
| selfOnline | Yes | ||
| haveNodeKey | Yes | ||
| backendState | Yes | ||
| tailscaleIPs | Yes | ||
| currentTailnet | No |