Skip to main content
Glama

inspect_port

Inspect listening processes and test IPv4/IPv6 localhost connectivity for a TCP port to diagnose refusals, timeouts, and binding mismatches.

Instructions

Inspect listening processes and IPv4/IPv6 localhost connectivity for a 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": "inspect_port"
  }
}

Input Schema

NameRequiredDescriptionDefault
portYes
timeoutNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

C2.8/5.0
Behavior2/5

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

With no annotations provided, the description must carry the full behavioral burden. It discloses the inspection scope but does not state whether elevated privileges are needed to inspect processes, whether it performs actual TCP connection attempts, or how the timeout parameter affects behavior.

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?

The definition is a single, front-loaded sentence with no redundant wording. It is tightly scoped and easy to scan, even though it omits important behavioral and parameter details elsewhere.

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

Completeness2/5

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

The tool has two parameters, no annotations, zero schema description coverage, and an output schema. Return-value explanation is not required, but the description should still cover timeout behavior, privilege requirements, and how this differs from sibling diagnostic tools; those gaps leave it incomplete.

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%, and the description only implicitly identifies the port parameter through "for a TCP port." The timeout parameter is not mentioned at all, so the description does not compensate for the missing parameter documentation.

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 names a specific verb, "Inspect," and concrete resources: listening processes plus IPv4/IPv6 localhost connectivity for a TCP port. It is clearly more specific than a plain port listing, but it does not explicitly distinguish itself from sibling diagnostic tools such as diagnose_port or list_ports.

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 description provides no explicit guidance on when to use this tool versus alternatives like diagnose_port, list_ports, inspect_docker_ports, or inspect_wsl_ports. Usage is only inferable from the phrase "localhost connectivity," with no exclusions or routing conditions.

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