Skip to main content
Glama

Enable the app portal

portal_enable
Idempotent

Enable a Tailnet-only home portal to expose private apps and configure owner, admins, gateway mode, hostname, and ports while preserving existing grants and services.

Instructions

Enable an independent Tailnet-only home portal. New portals default to gateway mode. Omitted owner/admins preserve verified identities; first enrollment may leave owner unset. Optional admins can open all private apps. HTTP MCP requires the current exact portal owner before any owner/admin settings can change; other callers receive access_request_owner_required. Local CLI/stdio MCP is the bootstrap/recovery path; an unset owner cannot be claimed remotely. Confirm administrative identities with the owner. Grants and service registrations stay intact; the daemon hot-reloads the portal independently. Does not install or restart the daemon, send invites, or change tailnet ACLs. Funnel is explicitly refused. A pending result is saved configuration, not proof of a running URL; check status. Outside-tailnet visitors also need the home node shared through Tailscale.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "portal_enable"
  }
}

Input Schema

NameRequiredDescriptionDefault
ownerNo
adminsNo
funnelNoAlways refused when true.
gatewayNoEnable the persistent gateway. Omit to retain current settings; false removes gateway mode only when no routes remain.
hostnameNohome
gateway_tagNoCredentialed gateway tag; omitted retains the tag, empty restores the default.
gateway_portsNoGateway port range, initially 8443-8499; omitted retains the range.

Output Schema

NameRequiredDescriptionDefault
urlNo
errorNo
stateYes
enabledYes
gatewayNo
messageNo
hostnameNo
owner_revokedNoRecorded owner that stays revoked; restore with portal enable naming that owner.
owner_restoredNoOwner login whose revocation this enable cleared, because the call named that owner.
unavailable_appsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.4.0
    • addedOutput schema / properties / owner_restored
      Added value: +{
      +  "description": "Owner login whose revocation this enable cleared, because the call named that owner.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / owner_revoked
      Added value: +{
      +  "description": "Recorded owner that stays revoked; restore with portal enable naming that owner.",
      +  "type": "string"
      +}
  2. Changed3 schema fields changedv0.3.0
    • removedInput schema / required
      Removed value: -[
      -  "owner"
      -]
    • addedOutput schema / properties / message
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / unavailable_apps
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  3. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations, it discloses identity preservation, first-enrollment owner behavior, admin privileges, the access_request_owner_required failure mode, unaffected grants and service registrations, daemon hot reloading, and explicit non-actions such as not installing, restarting, inviting, or changing ACLs. It also warns that a pending result is only saved configuration and that Funnel is refused, which is substantial behavioral context.

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 definition is dense and front-loads the core action before moving into prerequisites and side effects. Most sentences carry operational value, though the funnel refusal is repeated from the schema and the many packed constraints could be easier to scan.

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?

The output schema exists, and the description still covers the critical identity, authorization, side-effect, idempotency, and pending-state caveats needed for this complex mutation. An agent has enough context to avoid unsafe assumptions about owner setup, remote claiming, and daemon behavior.

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?

With 57% schema description coverage, the description adds important meaning for owner and admins: omission preserves verified identities, first enrollment may leave owner unset, and admins can open all private apps. The schema already covers funnel, gateway, gateway_tag, and gateway_ports, while hostname remains largely schema-only, so this is strong but not complete.

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 and resource: enabling an independent Tailnet-only home portal. It clarifies the default gateway mode and scope well enough to distinguish this from disabling the portal or managing routes.

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 states important usage conditions: HTTP MCP callers must be the current exact portal owner, while local CLI/stdio MCP is the bootstrap/recovery path. It does not explicitly route the agent to sibling alternatives such as portal_disable or portal_route_add, so it falls short of a fully explicit when-to-use guide.

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