Skip to main content
Glama
@yawlabs/tailscale-mcp

@yawlabs/tailscale-mcp

by YawLabs

Diff ACL access

tailscale_diff_acl_access
Read-onlyIdempotent

Compare a proposed Tailscale ACL policy against the current live policy per user to report who gains and loses access before applying it.

Instructions

Answer 'who loses access?' before applying an ACL change. Compares the CURRENT policy against a proposed one and reports, per user, which destinations they gain and lose. Run this before tailscale_update_acl -- validate_acl only checks syntax and the policy's own tests block, so a policy with no tests validates clean while revoking everyone. LIMITS, all reported in the response rather than left to be discovered. It compares USER principals only, so a revocation that runs through a tag or group can show a clean diff, and an empty result is never proof a change is safe. Posture DEFINITION changes ARE detected: posture names are resolved to their rules, so tightening posture:corp shows as a change -- except when a preview omits the definitions map, where it falls back to comparing names. It costs two preview requests per user, so it checks the first 25 by default and stops starting new users after 60 seconds (a user whose previews are already in flight still finishes); either way it sets truncated, reports how many were skipped, and says which limit stopped it. Users whose preview fails are listed in failed and excluded from the compared count -- a failure is never reported as lost access, and if nothing could be compared the call fails rather than returning an empty diff. A refused credential (a 401 that survives one retry, or a 403) stops the run early: comparisons already finished are kept, stoppedOnAuthFailure is set, and users not reached count as not checked.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "policy": "<policy>"
    },
    "name": "tailscale_diff_acl_access"
  }
}

Input Schema

NameRequiredDescriptionDefault
policyYesThe proposed ACL policy text to compare against the current live policy
principalsNoPrincipals to check, as they appear in `loginName` from tailscale_list_users. That is often an email, but on a GitHub or SSO tailnet it is not (e.g. 'alice@github') -- pass the loginName verbatim rather than an address you assume. Omit to enumerate the tailnet's users automatically. Pass an explicit list to bound the request count, or to check specific users beyond the cap.
maxPrincipalsNoMaximum users to check (default 25). Each costs two preview requests. Raising this on a large tailnet can be slow and may hit rate limits.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.19.1

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only cover the safety profile (readOnly, idempotent, non-destructive, openWorld); the description adds substantive behavior well beyond that: two preview requests per user, a 25-user default cap, a 60-second budget with in-flight users completing, `truncated` plus skipped counts, `failed` exclusion semantics, and an auth-failure path that keeps completed comparisons and sets `stoppedOnAuthFailure`. It also discloses a real correctness caveat (user principals only, tag/group revocations can produce a clean diff) and that an empty result is not proof of safety. Nothing here conflicts with the annotations.

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?

The motivating question and the core comparison are front-loaded in the first sentence, then limits are collected under an explicit 'LIMITS' framing, which is good structure. It is dense and would benefit from being split into shorter sentences or bullets, but essentially every clause carries operational information an agent would otherwise have to discover.

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?

For a read-only diff tool with three parameters and no output schema, the description covers the inputs, the truncated/failed/stopped-on-auth response fields, cost and rate-limit risk, and the tool's correctness boundaries. An agent could decide whether to call it and interpret the result without further exploration.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, but the description adds meaning the schema lacks: the two-request cost model behind `maxPrincipals`, the 60-second wall-clock stop that the schema never mentions, and why an explicit `principals` list matters (bounding request count or reaching users past the cap). It reinforces rather than repeats the schema's guidance on `loginName` format.

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 opens with a specific verb+resource framing: it 'compares the CURRENT policy against a proposed one and reports, per user, which destinations they gain and lose.' It also explicitly distinguishes itself from tailscale_validate_acl and names tailscale_update_acl as the downstream action, so an agent can place it precisely among siblings.

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

Usage Guidelines5/5

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

It gives an explicit when-to-use rule ('Run this before tailscale_update_acl') and an explicit alternative with a reason to prefer this tool: 'validate_acl only checks syntax and the policy's own tests block, so a policy with no tests validates clean while revoking everyone.' That is a direct when/when-not/alternative triad.

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