Skip to main content
Glama

diagnose_port

Runs evidence-based diagnostics for a local host and TCP port to identify listening processes, connection refusals, timeouts, and IPv4/IPv6 binding mismatches.

Instructions

Run evidence-based diagnostics for a local development host and TCP 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": "diagnose_port"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostNolocalhost
portYes
timeoutNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. It does not disclose whether the tool opens real TCP connections, whether it has side effects, how the timeout is applied, or what failure/pass semantics the diagnostics produce; "evidence-based" hints at reporting evidence but nothing concrete about behavior is stated.

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 or redundancy. Its brevity is appropriate in form, though the space saved is not reinvested in any required detail.

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?

The output schema exists, so return values need not be explained, which lightens the burden. But for a network-probing tool with three undocumented parameters and zero annotations, the description leaves behavior, assumptions, and per-parameter meaning unstated, so it is only minimally adequate.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across three parameters. The description only echoes host and port concepts ("local development host and TCP port") without adding defaults, formats, or constraints, and never mentions the timeout parameter at all, so it fails to compensate for the undocumented schema.

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

Purpose3/5

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

States a specific verb ("Run") and resource ("diagnostics for a local development host and TCP port"), so the agent knows it produces diagnostic evidence rather than a raw listing. However, "evidence-based diagnostics" is undefined, and the distinction from the close sibling inspect_port is left implicit, so an agent cannot confidently choose between them from the description alone.

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?

There is no statement of when to use this tool versus inspect_port, inspect_docker_ports, inspect_wsl_ports, or list_ports, and no prerequisites or exclusions. The agent must infer that "diagnose" implies troubleshooting while "inspect" implies observation.

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