Skip to main content
Glama

Remove a shared service

unshare
DestructiveIdempotent

Stop sharing a service by deleting it and its tailnet device, removing it from the registry and cleaning up local node state; confirm with the user first.

Instructions

Deletes a service and its tailnet device, so confirm with the user before calling this. It removes the named service from the local TSLink registry, deletes the service's tailnet device through the Tailscale API when TSLink holds its exact recorded NodeID (a device matched only by hostname is kept and reported), and deletes the service's local node state once no tailnet node of it survives; a running daemon finishes that last step itself. It is idempotent: a service already absent is success with removed false. Use this when the user asks to stop sharing a specific service. Over HTTP MCP, a change to a public app (open Funnel, a lapsed Funnel that keeps its public acknowledgement, or guest links), including one that makes an app public or removes it, needs the current portal owner when one is configured or a home gateway is on, checked in the write transaction (access_request_owner_required).

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": {
      "name": "<name>"
    },
    "name": "unshare"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesExact registered service name to remove.

Output Schema

NameRequiredDescriptionDefault
nameYes
removedYesWhether this call removed the local registry entry (true) or found the service absent (removed false). The request is idempotent, so both are success, and success does not guarantee tailnet device cleanup: check device_cleaned and device_warning.
device_cleanedYes
device_warningNo
device_skip_reasonNo
device_cleanup_skippedYes
node_state_kept_reasonNoWhy the service's local node state was kept when no other field says so: some of its recorded tailnet nodes were neither deleted nor confirmed absent.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior5/5

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

Far beyond the annotations, it spells out exactly what is destroyed (registry entry, tailnet device, local node state), the conditional that governs device deletion (exact recorded NodeID vs hostname-only match, which is kept and reported), who finishes the last step (a running daemon), and the idempotent-success contract with 'removed false'. It also discloses an auth requirement (portal owner, access_request_owner_required, checked in the write transaction), which annotations do not convey.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The destructive warning is correctly front-loaded, but the middle sentence is a long run-on that chains registry removal, NodeID conditional, and daemon behavior with semicolons. The final HTTP MCP sentence is dense jargon (public app, lapsed Funnel, access_request_owner_required) that is hard to parse on first read.

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 destructive, open-world, single-parameter tool with an output schema and full annotations, the description covers everything an agent needs: confirmation guidance, destruction semantics, partial-failure behavior, idempotency, and authorization gating. Return values are covered by the output schema, so no gap remains.

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 one parameter at 100% schema coverage, the schema already defines the name, its pattern, and its exactness requirement. The description only echoes 'the named service' and does not add naming, matching, or normalization rules beyond what the schema states, so the baseline 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?

The opening states a concrete verb and resource: 'Deletes a service and its tailnet device', and adds the routing sentence 'Use this when the user asks to stop sharing a specific service.' That is enough to distinguish it from credential-style siblings like guest_revoke or invite_revoke, though no sibling is named explicitly.

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 a clear trigger ('when the user asks to stop sharing a specific service') and an explicit prerequisite ('confirm with the user before calling this'), plus an environment-specific precondition about the portal owner over HTTP MCP. It stops short of stating when NOT to use it or naming a concrete alternative, so it is not a 5.

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