Skip to main content
Glama

tenki_open_preview

Open a viewer-token-gated preview for a sandbox port, returning a token that grants access through another resolver. Requires allow_inbound.

Instructions

Open a viewer-token-gated (AUTHENTICATED-mode) preview. USE tenki_expose_port OR tenki_create_preview_url INSTEAD for an ordinary web server: for any port other than the web terminal (7681) the API deliberately returns a non-regional fallback host that currently has no edge route, so the URL 404s (live-verified). The returned viewerToken does resolve via tenki_resolve_preview_token; only the URL is unreachable. Requires allow_inbound.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
portYesThe TCP port inside the sandbox to open a preview for (1-65535).
expires_atNoOptional RFC-3339 timestamp at which the preview auto-expires. Omit to keep it until the sandbox ends.
session_idYesThe sandbox session serving the port.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.7/5.0
Behavior5/5

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

Goes beyond annotations by disclosing the live-verified URL failure for ports other than 7681 and clarifying that the viewerToken still resolves via tenki_resolve_preview_token. Also notes the require allow_inbound prerequisite. This adds significant behavioral context not in 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.

Conciseness5/5

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

Three sentences with no filler. The main purpose is front-loaded, and the warning is placed immediately after, making it easy to scan. Every sentence provides necessary information.

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 tool with a specific failure mode and token behavior, the description covers the essential caveats, the prerequisite, and the token resolution. Given the schema documents parameters and no output schema is present, the description is sufficiently complete for correct invocation.

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?

Schema description coverage is 100%, so the parameters are fully documented in the schema. The description adds little beyond the schema, except for the allow_inbound prerequisite which is not a parameter. Baseline of 3 is appropriate.

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 action (open a viewer-token-gated preview) and distinguishes itself from sibling tools (tenki_expose_port, tenki_create_preview_url) by explaining it is for AUTHENTICATED-mode previews. The verb 'open' and resource 'preview' are clear.

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?

Explicitly instructs when NOT to use this tool and provides alternatives: 'USE tenki_expose_port OR tenki_create_preview_url INSTEAD for an ordinary web server.' Also gives a concrete reason (non-7681 ports return a fallback host that 404s), so an agent can decide correctly.

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