Skip to main content
Glama

tailnet_join

Join a server to the Tailscale tailnet using its public address, generating a one-time key and confirming the node is online. For servers already set up but logged out or never joined.

Instructions

Join a server to the tailnet over its public address (hosts..bootstrap in fleet.yaml): for a machine that is already set up but logged out of Tailscale or never joined. The key is a fresh one-time key from the Tailscale API (TAILSCALE_API_KEY), made only on apply and passed through the environment — never in the plan or journal; without the API it falls back to TAILSCALE_AUTH_KEY. Runs tailscale up --reset --ssh --hostname node-<name> (+ exit node like the fleet), then verifies the node shows up online.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hostYesinventory host with bootstrap.address
applyNofalse (default) = dry run: show what will happen on which hosts and a planHash. true = run it; needs planHash
installNoinstall Tailscale first when it is missing (official install script), for a fresh server set up without node_bootstrap
sshPortNo
sshUserNossh user on the public address (default: bootstrap.user, else root)
exitNodeNo--advertise-exit-node, as every fleet node does
planHashNoplanHash from the dry run of the very same call, good for one apply; refused if targets or their state changed since

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so unusually well: it discloses the auth path (fresh one-time key from TAILSCALE_API_KEY, generated only on apply, passed via environment and never persisted to plan/journal, with TAILSCALE_AUTH_KEY fallback), the exact effect (`tailscale up --reset --ssh --hostname node-<name>` plus exit node), and a post-run verification step. Secret handling, side effects, and confirmation behavior are all surfaced.

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?

Four dense sentences, front-loaded with the action and scope, then the auth mechanism and the executed command. Information-dense with little waste, though it is longer than strictly necessary for the front-loaded portion to land.

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?

No output schema or annotations, so the description must stand alone — and for a 7-parameter mutation tool it covers credentials, mechanism, and verification well. Remaining gaps (error modes, permissions required, consequences of --reset on existing state) are minor but real.

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 86%, so the parameters are already largely documented. The description reinforces the apply/host semantics ('key made only on apply', bootstrap.address) but adds no syntax or format beyond what the schema states, so this is baseline-level.

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 (Join) and resource (a server to the tailnet) plus the connection path (hosts.<name>.bootstrap in fleet.yaml). It also pins the eligibility window — 'already set up but logged out of Tailscale or never joined' — which implicitly separates it from node_bootstrap (fresh servers) so an agent can route correctly.

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?

Gives a clear when-to-use condition (machine already set up but logged out, or never joined), which is the key routing signal. It never names the alternative (node_bootstrap) explicitly nor states when NOT to use this tool, so it stops short of full alternative routing.

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