Skip to main content
Glama

Create auth key

tailscale_create_auth_key
Destructive

Create a new auth key for the tailnet (used to register new devices). Tailscale REST: POST /tailnet/{tailnet}/keys.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagsNoACL tags to apply to devices created with this key, e.g. ["tag:ci"].
reusableNoIf true, the key can register multiple devices.
ephemeralNoIf true, devices registered with this key are ephemeral (removed shortly after going offline).
descriptionNoA short description for the key.
expirySecondsNoKey lifetime in seconds; 0 means no expiry (if allowed by tailnet policy).
preauthorizedNoIf true, devices registered with this key are pre-authorized (skip device approval).

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare destructiveHint: true, so the bar is lower. The description adds the context of 'used to register new devices' but does not disclose that the key is secret and typically shown only once. No contradiction exists between description and annotations.

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 concise sentences, front-loading the primary purpose and then providing the REST endpoint reference. No wasted words or repetition.

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

Completeness3/5

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

The schema fully documents all 6 optional parameters, and the destructiveHint annotation covers safety. However, the description does not mention the response contents (e.g., that the auth key value is returned once), which is important for an agent to know. Overall adequate but with a notable gap.

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%, so all parameters are described in the schema. The description itself does not add any parameter-specific meaning beyond what the schema already provides, so baseline 3 applies.

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 a specific action ('Create a new auth key') and resource ('tailnet'), and includes the purpose ('used to register new devices'). It distinguishes from siblings like tailscale_delete_key and tailscale_list_keys by indicating creation.

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?

It gives clear usage context by stating the key is for registering new devices, implying when to use this tool. It does not explicitly name alternatives or exclusions, but the purpose is unambiguous enough that usage is clear.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

A3.9/5.0
Disambiguation5/5

Each tool targets a distinct resource and action. For example, list/get/delete keys are clearly separated by operation, and DNS-related tools each address a different aspect (preferences, nameservers, searchpaths, split-dns). No two tools overlap in purpose.

Naming Consistency5/5

All tools follow the `tailscale_<verb>_<noun>` pattern with consistent vocabulary (list, get, create, delete, set, expire, authorize). The style is uniformly snake_case, making the set predictable.

Tool Count4/5

22 tools is on the higher end but still within a manageable scope for a comprehensive Tailscale API wrapper. Each tool covers a distinct endpoint, and no obvious duplication exists, though the number edges toward heavy.

Completeness3/5

The server provides strong coverage for devices and auth keys (CRUD plus actions), but DNS preferences, nameservers, search paths, split-DNS, policy file, tailnet settings, and webhooks are read-only. Missing update operations for these tailnet configuration resources are notable gaps for a management tool.