Skip to main content
Glama

Tailnet status

tailnet_status
Read-onlyIdempotent

Reports local Tailscale tailnet state—node and peers with hostnames, IPs, OS, online status, last seen, exit-node flags, tags; returns exact fix commands for missing binary, stopped daemon, or login.

Instructions

Report the state of the local tailnet: this node plus all peers with hostname, MagicDNS name, Tailscale IPv4/IPv6, OS, online flag, last seen, exit-node flags, and tags. Returns a structured error with the exact fix command when the tailscale binary is missing, the daemon is stopped, or the device needs login.

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": "tailnet_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
onlineOnlyNoOnly include peers that are currently online (default: false)

Output Schema

NameRequiredDescriptionDefault
selfYes
peersYes
healthYes
tailnetYes
peerCountYesTotal peers, before any onlineOnly filter
backendStateYes
magicDNSSuffixYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.4.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "backendState": {
      +      "type": "string"
      +    },
      +    "health": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "magicDNSSuffix": {
      +      "type": "string"
      +    },
      +    "peerCount": {
      +      "description": "Total peers, before any onlineOnly filter",
      +      "type": "number"
      +    },
      +    "peers": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "dnsName": {
      +            "type": "string"
      +          },
      +          "exitNode": {
      +            "type": "boolean"
      +          },
      +          "exitNodeOption": {
      +            "type": "boolean"
      +          },
      +          "hostname": {
      +            "type": "string"
      +          },
      +          "ipv4": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "ipv6": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "lastSeen": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "online": {
      +            "type": "boolean"
      +          },
      +          "os": {
      +            "type": "string"
      +          },
      +          "sharee": {
      +            "type": "boolean"
      +          },
      +          "tags": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "hostname",
      +          "dnsName",
      +          "ipv4",
      +          "ipv6",
      +          "os",
      +          "online",
      +          "lastSeen",
      +          "exitNode",
      +          "exitNodeOption",
      +          "tags",
      +          "sharee"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "self": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "dnsName": {
      +          "type": "string"
      +        },
      +        "exitNode": {
      +          "type": "boolean"
      +        },
      +        "exitNodeOption": {
      +          "type": "boolean"
      +        },
      +        "hostname": {
      +          "type": "string"
      +        },
      +        "ipv4": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "ipv6": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "lastSeen": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "online": {
      +          "type": "boolean"
      +        },
      +        "os": {
      +          "type": "string"
      +        },
      +        "sharee": {
      +          "type": "boolean"
      +        },
      +        "tags": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        }
      +      },
      +      "required": [
      +        "hostname",
      +        "dnsName",
      +        "ipv4",
      +        "ipv6",
      +        "os",
      +        "online",
      +        "lastSeen",
      +        "exitNode",
      +        "exitNodeOption",
      +        "tags",
      +        "sharee"
      +      ],
      +      "type": "object"
      +    },
      +    "tailnet": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "backendState",
      +    "tailnet",
      +    "magicDNSSuffix",
      +    "health",
      +    "self",
      +    "peerCount",
      +    "peers"
      +  ],
      +  "type": "object"
      +}
  2. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered by structured data. The description earns credit for going beyond that by disclosing failure behavior: a structured error carrying the exact fix command for a missing binary, stopped daemon, or required login. That is precisely the kind of context annotations cannot express.

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?

Two sentences, front-loaded with the primary action, then the failure modes. Slightly dense in the field enumeration, but every clause carries information an agent would otherwise have to infer from the output schema.

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?

An output schema exists, so return values need not be spelled out, and the description correctly spends its budget on preconditions and error recovery instead. The only shortfall is the absence of guidance on how to handle a large tailnet or whether results are paginated, which is minor for this tool.

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?

With a single parameter at 100% schema description coverage, the schema already documents onlineOnly and its default. The description adds nothing about filtering behavior or how onlineOnly interacts with the returned peer list, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Report the state of the local tailnet") and enumerates exactly what is covered: node, peers, hostnames, MagicDNS names, IPs, OS, online flag, exit-node flags, tags. This is far more than a restated title. It doesn't explicitly distinguish itself from siblings like share_status or ping_all, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The read-only diagnostic framing implies when to reach for it, but there is no explicit "use this when..." statement and no mention of when to prefer share_status or ping_all instead. The implied usage is clear enough for an agent to proceed, but the routing is left to inference.

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