Skip to main content
Glama

Create a browser guest link

guest_create

Creates a time-limited browser guest grant for one proxy app, configures its guest gate and public Funnel exposure, and returns the bearer link only at creation.

Instructions

Owner-only: create a time-limited browser guest grant for one proxy app and configure its guest gate and enable public Funnel exposure (applied by the daemon). Returns grant metadata, a recipient message and configured edge state; the bearer link is hidden unless print_link is true and is only available at creation. Use guest_create for a new link; guest_show cannot recover an existing token. Requires public acknowledgement when first enabling the guest gate. The first link removes the app's home gateway route when only the owner and admins use it and reports it in removed_gateway_route; otherwise it refuses with portal_route_guest_refused and the command to run. No OIDC or tailnet account is required for the visitor. Makes no remote API calls; check status separately for live Funnel availability. 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": {
      "app": "<app>",
      "for": "<for>"
    },
    "name": "guest_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
appYes
forYesRelative lifetime (descending unique units w,d,h,m,s,ms,us,ns) or until <RFC3339|YYYY-MM-DD|YYYY-MM-DDTHH:MM>. Local unless offset given; DST gaps/folds require an offset. Minimum 1h. Presets: 1h, 8h, 24h, 3d, 7d. Default 24h; guest/public maximum defaults to 7d, configurable in durations.public_max. Never refused. Omission on add preserves an existing deadline.
pinNoOptional secret 6..64 digit PIN; never log it.
labelNo
publicNo
print_linkNoExplicitly request the bearer link once; default output is masked.

Output Schema

NameRequiredDescriptionDefault
linkYes
grantYes
messageYes
edge_stateYes
request_body_limitYesPer-request upload cap guests meet (max_body_bytes, -1 for unlimited; message with the command that raises it).
removed_gateway_routeYesHome gateway route this create removed (port, message); null when none was removed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.4.0
    • addedOutput schema / properties / removed_gateway_route
      Added value: +{
      +  "description": "Home gateway route this create removed (port, message); null when none was removed.",
      +  "type": [
      +    "object",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / request_body_limit
      Added value: +{
      +  "description": "Per-request upload cap guests meet (max_body_bytes, -1 for unlimited; message with the command that raises it).",
      +  "type": "object"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "grant",
      -  "link",
      -  "message",
      -  "edge_state"
      -]New value: +[
      +  "grant",
      +  "link",
      +  "message",
      +  "edge_state",
      +  "removed_gateway_route",
      +  "request_body_limit"
      +]
  2. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only say it is not read-only, not idempotent, not open-world; the description goes far beyond that, disclosing that the bearer link is shown once and masked unless print_link is true, that the first link may remove the app's home gateway route (reported in removed_gateway_route), that no OIDC or tailnet account is needed for the visitor, that no remote API calls are made, and that an owner check occurs in the write transaction over HTTP MCP. The gateway-route removal sits in mild tension with destructiveHint=false, but because the side effect and its refusal path are fully disclosed the agent is not misled.

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 operative clause is front-loaded and nearly every clause carries call-relevant information (error codes, one-time link, ownership check). The final sentences are run-on and semicolon-chained, which hurts scannability, but little is genuinely redundant.

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 mutating, permission-gated tool with six parameters and side effects on routing, the description covers creation, side effects, failure modes, auth requirements, and what is returned; the output schema carries the return-value detail, so nothing essential is missing.

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 only 50% (app, label and public are undocumented in the schema), and the description compensates: 'app' is scoped to one proxy app, 'public' is tied to the guest gate and Funnel exposure, 'print_link' is explained as a one-time bearer-link reveal. 'label' and the interaction between 'for' and the public duration cap are left to the schema.

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?

States a specific verb and resource ('create a time-limited browser guest grant for one proxy app') plus the configuration it applies (guest gate, public Funnel exposure). It explicitly distinguishes itself from the nearest sibling: 'Use guest_create for a new link; guest_show cannot recover an existing token.'

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?

Gives prerequisites and scope (owner-only, requires public acknowledgement on first gate enable), names the alternative that fails (guest_show), and defines refusal conditions with actionable remedies ('refuses with portal_route_guest_refused and the command to run'). It also tells the agent what must be checked separately (status for live Funnel availability).

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