Skip to main content
Glama

Expose a sandbox port on a public HTTPS URL

host_port

Publish a sandbox port at a stable public HTTPS URL, optionally token-gated, and open the sandbox firewall so external clients can reach the service.

Instructions

Expose a sandbox port on a public HTTPS URL. Registers a stable https://<sandbox-subdomain>-<port>.on.boat.dev route for a port inside the sandbox and opens the sandbox firewall for it. Idempotent: calling it again for the same sandbox and port returns the same URL and token. On a sandbox with network.inbound boat-only, only a caller outside the sandbox can publish: a session, or an API key that does not live in a sandbox. The key that lives in the sandbox, and any request that a sandbox with a network policy sends, get 403 inbound_closed. With public: true the URL carries no token; the raw port stays closed.

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": {
      "sandboxId": "<sandboxId>",
      "port": "<port>"
    },
    "name": "host_port"
  }
}

Input Schema

NameRequiredDescriptionDefault
portYesPort the service listens on inside the sandbox.
titleNoDisplay title for the hosted port.
publicNoReturn an ungated URL instead of one that requires the `_token` query parameter.
localhostNoSet when the service listens on localhost (`127.0.0.1` or `::1`) only. The sandbox relays the URL to it. Leave unset for a service bound to `0.0.0.0`. Each call sets the value again.
sandboxIdYesPublic Sandbox id returned by create/list/get sandbox calls.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.0

TDQS

A3.9/5.0
Behavior2/5

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

The description adds real behavioral context beyond the annotations: an explicit 403 inbound_closed failure mode tied to network policy, firewall opening, token-gated versus ungated URLs, and the effect of public:true on the raw port. However, it asserts 'Idempotent: calling it again for the same sandbox and port returns the same URL and token' while the annotations declare idempotentHint=false, which is a direct conflict on a behavioral trait the agent may rely on for retry logic.

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 purpose and URL shape are front-loaded, then the failure conditions, then the public flag trade-off — a sensible order with no filler sentences. It is dense with policy jargon (network.inbound, boat-only, inbound_closed) that assumes familiarity, which slightly reduces readability but not efficiency.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with no output schema, the description covers the essentials an agent needs: what gets created, the auth/permission constraints, the error case, and the partial return values (URL and token). Remaining gaps are minor — it does not describe the response envelope or what happens to an existing route's title when re-published.

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 100%, so the baseline is 3, but the description still adds meaning the schema does not: public:true removes the token requirement AND leaves the raw port closed, and the token is specifically the _token query parameter. The localhost and title parameters, however, are not discussed in the description at all.

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 first sentence gives a specific verb and resource (expose a sandbox port on a public HTTPS URL) and the second adds the concrete mechanism (a stable https://<sandbox-subdomain>-<port>.on.boat.dev route plus firewall opening). This is clearly distinct from siblings such as create_download_url or create_upload_url, which deal with files rather than live port routing.

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 spells out the conditions under which a call will fail: with network.inbound=boat-only, only a caller outside the sandbox (a session, or a non-sandbox API key) can publish, and the in-sandbox key or policy-bound requests get 403 inbound_closed. It also explains the public:true trade-off. It stops short of explicitly naming an alternative tool for the cases it excludes, so it is clear context rather than full when/when-not/alternatives guidance.

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