Skip to main content
Glama

Tailscale MCP by usefulapi

Authorize device

tailscale_authorize_device
Destructive

Authorize or de-authorize a device (only relevant when device approval is enabled for the tailnet). Tailscale REST: POST /device/{deviceId}/authorized.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
deviceIdYesThe device id.
authorizedYesTrue to authorize the device into the tailnet, false to de-authorize it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A3.8/5.0
Behavior3/5

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

The annotation already flags destructiveHint=true, so the agent knows this is a state-changing call. The description adds the approval-mode precondition and reveals the endpoint is dual-purpose (authorize and de-authorize via one boolean), but it never states the consequence of de-authorizing (loss of tailnet access) or any permission requirements.

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?

Two sentences, zero filler: the behavior and its precondition come first, with the endpoint reference trailing. Nothing could be removed without losing information.

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?

For a simple two-parameter mutation with a fully documented schema and an annotation covering the destructive aspect, the description is nearly sufficient. Only the effect of the authorized=false branch and the returned result are left unstated, which is a minor gap given no output schema exists.

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%, and both parameters (deviceId, authorized) are fully documented in the schema, so the baseline is 3. The description adds no syntax or format detail beyond what the schema already provides.

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?

The description states a specific verb pair (authorize/de-authorize) and its resource (device), plus the exact REST endpoint, so the operation is unambiguous. It does not name a sibling tool, but 'authorize' is inherently distinct from delete_device, set_device_name, and expire_device_key in the sibling set.

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 supplies a clear precondition: the tool is only relevant when device approval is enabled for the tailnet, which tells an agent when this call matters versus not. It stops short of naming an alternative tool or explaining what to do in non-approval tailnets, so it is clear context without explicit exclusions.

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.