Skip to main content
Glama

Expose port

expose_port

Expose a machine's TCP port as a private HTTPS preview URL, restricted to signed-in account members or preview token holders.

Instructions

Expose a TCP port of a machine (e.g. a dev server on 3000) at a private https preview URL. Only signed-in members of the account (or holders of a preview token) can open it.

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": {
      "machine_id": "<machine_id>",
      "port": "<port>"
    },
    "name": "expose_port"
  }
}

Input Schema

NameRequiredDescriptionDefault
portYesTCP port the server listens on in the machine.
labelNoOptional label shown in the panel.
machine_idYesMachine id (machine_id from create_machine or list_machines).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already disclose that this is a non-read-only, non-idempotent, open-world mutation. The description adds genuine access-control context — only signed-in account members or preview token holders can open the URL — which is not in the annotations. However, it omits what the call returns (no output schema exists) and whether repeated calls create new exposures, leaving real behavioral gaps.

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?

Two sentences with zero waste. The core action and its result are front-loaded, and the access constraint follows as a compact qualifier.

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

Completeness3/5

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

For a simple three-parameter mutation the description is broadly sufficient, but with no output schema it never says whether the preview URL is returned or how to retrieve it, nor how an exposure is later removed since no sibling offers that. Those are material gaps for an agent planning a follow-up step.

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 coverage is 100%, so all three parameters are fully documented in the schema itself. The description only adds the illustrative port example 3000; a baseline 3 is appropriate when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource — expose a TCP port of a machine — and names the concrete output, a private https preview URL. It is clearly distinct from the listed siblings (exec, create_machine, read_file), though it does not explicitly contrast itself with any of them.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The parenthetical 'e.g. a dev server on 3000' implies the intended scenario, but there is no explicit when-to-use or when-not guidance and no named alternative. An agent can infer the purpose, but nothing steers it away from misuse.

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