Skip to main content
Glama

expose_port

Expose a localhost server to the internet with a public HTTPS URL, so anyone can open it in a browser until the sandbox is destroyed.

Instructions

Give a server running inside the sandbox a public https URL, so a person can open it in a browser. Use this after starting a web server or dev server in the background. The server only needs to listen on localhost. Returns a URL that works until the sandbox is destroyed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
portYesThe port the server listens on, e.g. 3000.
sandbox_idYesThe id returned by create_sandbox.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.1.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations provided, the description carries the disclosure burden and does a good job by stating that the tool returns a public https URL and that the URL works until the sandbox is destroyed. It does not mention failure behavior or security implications of exposing a port, but the core behavioral contract is clear.

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?

The description is three sentences with no filler: purpose, usage timing, and URL lifetime are each covered concisely. The most important information is front-loaded.

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 two-parameter tool with no output schema, this description is complete enough. It explains the outcome, the prerequisite, and the duration of the returned URL, so an agent can select and invoke the tool correctly without additional documentation.

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 both sandbox_id and port are already documented in the schema. The description adds useful context about the server listening on localhost, but it does not substantially expand on the parameter meanings beyond what the schema provides.

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 action: 'Give a server running inside the sandbox a public https URL,' and clearly states the purpose is to let a person open the server in a browser. This distinguishes it from sibling tools like run_command and get_sandbox, which serve different purposes.

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?

It explicitly says when to use the tool: 'Use this after starting a web server or dev server in the background.' It also provides the prerequisite that the server only needs to listen on localhost, so the agent knows exactly when and how to invoke it.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/fstandhartinger/sandbox-as-a-service-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server