Skip to main content
Glama
YawLabs

@yawlabs/tailscale-mcp

by YawLabs

Get device

tailscale_get_device
Read-onlyIdempotent

Get detailed information for a specific Tailscale device by its ID, returning standard fields or all fields including routes and connectivity.

Instructions

Get detailed information about a specific device by its ID. Returns the default field subset unless fields: 'all'. 'lastSeen' is omitted while a device is connected (connectedToControl: true) and for devices that have never been online -- on a connected device a missing lastSeen means online now, not never seen.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fieldsNoWhich device fields to return. Tailscale documents exactly two values. 'default' (also what you get when this is omitted) is the limited set: addresses, id, nodeId, user, name, hostname, clientVersion, updateAvailable, os, created, connectedToControl, lastSeen, keyExpiryDisabled, expires, authorized, isExternal, machineKey, nodeKey, blocksIncomingConnections, tailnetLockKey, tailnetLockError, tags, isEphemeral. 'all' adds advertisedRoutes, enabledRoutes, clientConnectivity (endpoints, DERP latency), sshEnabled, distro, multipleConnections and postureIdentity (serial numbers and, where a posture integration collects them, hardware/MAC addresses). Omitting it does NOT return everything.
deviceIdYesThe device ID. nodeId from tailscale_list_devices (e.g. nPM2KNuedB21DEVEL); numeric id ok; not the nodeKey.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.21.0
    • changedInput schema / properties / deviceId / description
      Previous value: -"The device ID (numeric id or nodeId, NOT the nodeKey)"New value: +"The device ID. nodeId from tailscale_list_devices (e.g. nPM2KNuedB21DEVEL); numeric id ok; not the nodeKey."
    • addedInput schema / properties / fields
      Added value: +{
      +  "description": "Which device fields to return. Tailscale documents exactly two values. 'default' (also what you get when this is omitted) is the limited set: addresses, id, nodeId, user, name, hostname, clientVersion, updateAvailable, os, created, connectedToControl, lastSeen, keyExpiryDisabled, expires, authorized, isExternal, machineKey, nodeKey, blocksIncomingConnections, tailnetLockKey, tailnetLockError, tags, isEphemeral. 'all' adds advertisedRoutes, enabledRoutes, clientConnectivity (endpoints, DERP latency), sshEnabled, distro, multipleConnections and postureIdentity (serial numbers and, where a posture integration collects them, hardware/MAC addresses). Omitting it does NOT return everything.",
      +  "enum": [
      +    "all",
      +    "default"
      +  ],
      +  "type": "string"
      +}
  2. First observedv0.13.3

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnlyHint and idempotentHint, so the safety profile is covered. The description adds valuable behavioral nuance about lastSeen omission: that a missing lastSeen on a connected device means 'online now', not 'never seen'. This is non-obvious and critical for correct interpretation, going beyond what annotations or schema provide.

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?

The description is two sentences long, with the core purpose front-loaded and a specific caveat appended. Every sentence earns its place: the first states the action, the second explains a subtle behavior. There is no fluff or redundancy, making it efficient for an agent to parse.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description provides all necessary context for correct invocation: it explains the field selection, the default return subset, and the lastSeen edge case. Since there is no output schema, the description adequately conveys the return semantics without needing to enumerate all fields. The tool's complexity is well-handled within this concise description.

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 description coverage is 100%, with both fields and deviceId having detailed descriptions. The tool description repeats some of this (e.g., default vs. all) but adds no new meaning beyond the schema. Since the schema already explains parameter values and effects, the description does not need to compensate, so a baseline score of 3 is appropriate.

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?

The description clearly states the tool's purpose: retrieving detailed information for a specific device by its ID. It distinguishes itself from sibling tools like tailscale_list_devices by specifying 'a specific device', making its scope unambiguous. The mention of field subsets (default vs. all) further clarifies what the tool returns.

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?

The description implicitly signals when to use this tool: when you need details about one device rather than a list. It does not explicitly name alternatives, but the distinction from list_devices is evident from the description's focus on a single device. It also explains the fields parameter's effect, which guides selection of output detail. However, it lacks explicit exclusion guidance, such as 'use this instead of get_device_routes for routing info'.

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

Deploy Server

Other Tools