Skip to main content
Glama

suggest_port

Read-only

Returns the framework default port when free, otherwise the next free port, so parallel local development work avoids port collisions.

Instructions

Return the framework default port when it is free, otherwise the next free port.

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": {
      "framework": "<framework>"
    },
    "name": "suggest_port"
  }
}

Input Schema

NameRequiredDescriptionDefault
frameworkYes

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 declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds one genuinely useful behavioral fact, the preference-and-fallback rule for choosing a port. It does not clarify what 'free' means operationally, whether the suggestion is reserved or merely advisory (a race risk an agent should know about), or how unknown frameworks are handled.

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?

A single well-formed sentence that front-loads the primary outcome and states the fallback in the same breath. Nothing is redundant and nothing is buried.

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?

With one parameter, no output schema, and strong annotations, the definition is close to sufficient. However, it leaves the parameter's accepted values and the return value's form (bare integer port?) unstated, and it omits the important caveat that a suggested port may be taken before use, which matters given siblings like reserve_port exist.

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 0% for the single 'framework' parameter, so the description must carry meaning and it only partially does: the phrase 'framework default port' implies the argument selects from a known per-framework default table. It never says which frameworks are recognized, whether names are case-sensitive, or what happens on an unsupported value, so the gap is not closed.

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?

The description uses a specific verb (return) and resource (port) and articulates a clear two-branch rule: the framework default port if free, otherwise the next free port. It distinguishes itself from a generic free-port lookup by anchoring on the framework default. It does not explicitly name or contrast with the close sibling find_free_port, so it stops short of 5.

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?

Usage is only implied: an agent can infer this is the tool to call when it wants the framework's conventional port rather than an arbitrary free one. There is no explicit when-to-use statement, no when-not, and no mention of the adjacent reserve_port/find_free_port tools that an agent might confuse with it.

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