Skip to main content
Glama
PainInTheNic

tailscale-mcp-server

by PainInTheNic

Set exit node

tailscale_set_exit_node
Idempotent

Route this host's internet traffic through a chosen Tailscale exit node, or pass an empty string to stop using one. Requires approval because it redirects all host traffic.

Instructions

Route this host's internet traffic through a tailnet exit node (tailscale set --exit-node). Pass an empty string to CLEAR (stop using an exit node). ⚠ This redirects ALL of this host's traffic through the chosen node, so it requires user approval. Returns the resulting status.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
exitNodeYesExit node IP or MagicDNS name; "" to clear.
allowLanAccessNoAllow direct access to the local LAN while using the exit node.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
osNo
stateYesrunning | running_local_only | stopped | needs_login | starting | no_state | daemon_unreachable | unknown
healthYes
authURLNo
dnsNameNo
versionNo
hostNameNo
connectedYesTrue only when BackendState=Running AND Self.Online.
keyExpiryNo
keyExpiredYes
selfOnlineYes
haveNodeKeyYes
backendStateYes
tailscaleIPsYes
currentTailnetNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations cover the safety profile (readOnly=false, idempotent=true, destructive=false, openWorld=true), and the description adds genuinely new context: the operation redirects ALL of the host's traffic and therefore requires user approval. That approval gate is a behavioral trait annotations do not convey, though return-shape and failure modes are only gestured at.

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?

Three short sentences, with the core routing behavior and the clear semantics front-loaded before the warning. No filler; every sentence carries load.

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?

With an output schema present, the description need not explain return values, and it appropriately notes the resulting status plus the approval requirement and clearing behavior. Only the absence of a pointer to sibling discovery tools keeps it short of fully complete.

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?

Schema coverage is 100%, so both parameters (exitNode, allowLanAccess) are already documented in the schema. The description's mention of passing an empty string to clear merely echoes the schema description rather than adding syntax or format detail.

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+resource (route this host's internet traffic through a tailnet exit node), names the underlying CLI command, and clearly distinguishes itself from siblings like tailscale_list_exit_nodes by being the setter rather than the lister.

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?

Explains when the tool applies (redirecting this host's internet traffic) and covers the clear-via-empty-string case plus the user-approval requirement. It does not, however, point at the sibling an agent should call first to discover available exit nodes (tailscale_list_exit_nodes), leaving that inference to the agent.

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