Remove a shared service
unshareStop 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
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Exact registered service name to remove. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| removed | Yes | Whether 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_cleaned | Yes | ||
| device_warning | No | ||
| device_skip_reason | No | ||
| device_cleanup_skipped | Yes | ||
| node_state_kept_reason | No | Why 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. |