Skip to main content
Glama

register_port

Claim a local port for a dev server or app, auto-assigning one from the configured range when no port is given. Optionally expose it publicly via an ngrok tunnel.

Instructions

Yardmaster port registry: register a port for an application. Use when asked to register, claim, or reserve a port for a dev server or app. If port is not specified, one will be auto-assigned from the configured range. Does NOT create a public tunnel unless tunnel=true is passed.

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": {
      "app_name": "<app_name>"
    },
    "name": "register_port"
  }
}

Input Schema

NameRequiredDescriptionDefault
notesNoOptional hostname or exposure details. Pass null to leave the registration explicitly unannotated.
tunnelNoSet true to also expose the port publicly via an ngrok tunnel (requires ngrok auth token). Default false: registry entry only, no tunnel. Only enable when the user explicitly asks for a public/ngrok URL.
app_nameYesName of the application (e.g., "frontend", "api")
desired_portNoOptional specific port number. If not provided, will auto-assign from range.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/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 load and does well: it discloses auto-assignment from the configured range when no port is given, that tunneling is off by default, and that a tunnel requires an ngrok auth token. It does not say what happens when the requested port is already taken, whether re-registering an app is idempotent, or what the call returns, which are the remaining behavioral gaps for a mutation tool.

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?

Four short sentences with the purpose and trigger front-loaded, followed by defaults and the tunnel caveat in priority order. Minor redundancy: the auto-assign sentence largely duplicates the desired_port schema text, so one sentence does not fully earn its place.

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 4-parameter mutation tool with no annotations and no output schema, the definition covers purpose, trigger, and defaults but leaves out what the caller gets back (the assigned port number) and how port conflicts or duplicate app registrations are handled. These are material omissions an agent would need before calling it confidently.

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 schema already explains desired_port, tunnel, notes, and app_name in detail. The description only restates the auto-assign default and the tunnel gating, adding no syntax, validation, or conflict semantics beyond the structured fields. Baseline 3 applies 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.

Purpose5/5

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

States a specific verb and resource ("register a port for an application") plus the registry it belongs to ("Yardmaster port registry"), and the closing sentence carves out tunnel behavior as a separate concern. An agent can distinguish this from release_port, get_available_port, and query_ports purely from the verb and the stated side effect.

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?

"Use when asked to register, claim, or reserve a port for a dev server or app" gives a clear triggering intent with synonyms that match varied user phrasing. It also states the condition for the tunnel variant. It stops short of naming a sibling or exclusion (e.g., use get_available_port to merely inspect free ports), so it is clear context without explicit alternatives.

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