Skip to main content
Glama

PillDrops

forward_port

Publish a sandbox port on a raw public TCP port, for anything that is not HTTP — a database, an SSH daemon, a game server. The reply carries the public host:port to connect to. The preview URL is the right answer for web apps; this is the escape hatch below it, and it carries no credential of its own, so the sandbox must be visible to the org rather than private. Plans cap how many ports one sandbox may publish.

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": {
      "sandbox_id": "<sandbox_id>",
      "port": "<port>"
    },
    "name": "forward_port"
  }
}

Input Schema

NameRequiredDescriptionDefault
udpNoalso forward UDP (Firecracker only; default TCP only)
portYesthe port inside the sandbox to publish
sandbox_idYessandbox id, e.g. sb_ab12cd

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the return value (public host:port), an authorization precondition (no credential of its own, so the sandbox must be visible to the org), and a quota limit driven by plan tier. It does not cover persistence/lifecycle (whether the forward survives until remove_port_forward), duplicate-port behavior, or failure modes, which keeps it below a 5.

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?

Purpose is front-loaded in the first clause, followed by the return value, the sibling alternative, and the caveats — a logical order with no filler sentences. The visibility clause ('carries no credential of its own, so the sandbox must be visible to the org rather than private') is slightly dense but still earns its place.

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 three-parameter mutation tool with no output schema, the definition covers what it does, when to use it, what it returns, and the access and quota constraints. The remaining gap is lifecycle and error semantics, which an agent would want before publishing a port it may need to clean up.

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 all three parameters are already documented in the schema, making the baseline 3. The description implies directional semantics of the port parameter ('port inside the sandbox to publish') but adds no format or constraint detail, and the optional udp parameter is never echoed in the description.

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 ('Publish a sandbox port on a raw public TCP port') and immediately bounds the scope ('for anything that is not HTTP'). The contrast with the preview URL makes the tool's identity unambiguous without needing to inspect the schema.

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 routes the agent: the preview URL 'is the right answer for web apps' and this tool is 'the escape hatch below it', with concrete examples of appropriate cases (database, SSH daemon, game server). It also states a prerequisite (sandbox must be org-visible, not private) and a constraint (plans cap how many ports one sandbox may publish).

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.