Skip to main content
Glama

get_port_info

Read-only

Inspect a single port to identify listeners, reservations, HTTP probe results, and platform warnings, helping agents avoid collisions when discovering or leasing local development servers.

Instructions

Return listeners, reservation, HTTP probe, and platform warnings for one 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": {
      "port": "<port>"
    },
    "name": "get_port_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
portYes
probeNoSend an HTTP request. Default true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/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 that the call may involve an "HTTP probe," which hints at outbound request behavior, but it never states that the probe is on by default or that the call can be slower/unreliable when probing. It also omits what happens for a port with no listeners.

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?

A single front-loaded sentence with no filler; the verb and scope come first and the returned content categories follow. Slightly list-like rather than structured into use/behavior guidance, but nothing is wasted.

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 only two parameters and no output schema, the description usefully enumerates what comes back (listeners, reservation, probe result, warnings). However, it leaves gaps an agent would care about: default probe behavior's side effects and the response shape when the port is free.

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 50%: probe is documented ("Send an HTTP request. Default true.") while port relies on its 1-65535 constraints. The description's mention of "HTTP probe" loosely connects to the probe parameter but adds no semantics beyond the schema, so the baseline of 3 is appropriate.

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 ("Return") and resource ("for one port") and enumerates the four content categories returned: listeners, reservation, HTTP probe, platform warnings. This clearly separates it from list-style siblings like list_reservations and list_servers, though it never names an alternative explicitly.

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

Usage Guidelines2/5

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

The phrase "for one port" implies a single-port inspection use case, but there is no explicit when-to-use guidance, no when-not-to-use, and no routing to find_free_port, reserve_port, or list_reservations. An agent must infer the selection rule from the tool name alone.

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