Skip to main content
Glama

net.portcheck

Checks whether a TCP port on a host is open or closed and measures connection latency for quick reachability diagnosis.

Instructions

Single TCP connect: open/closed + latency.

Input Schema

NameRequiredDescriptionDefault
hostYes
portYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.5

TDQS

C2.9/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses that this is a single TCP connect and that the result includes open/closed state and latency, but it omits timeout behavior, IPv4/IPv6 handling, and whether the check performs only a TCP handshake or any application-layer probe.

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?

The description is extremely concise and front-loads the core operation and output. It avoids waste, though its terseness contributes to missing guidance 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?

For a tool with no annotations, no output schema, and 0% schema description coverage, the description is too sparse. It gives the basic operation and result shape but leaves parameter semantics, timeout behavior, and usage distinctions incomplete for an agent to invoke it confidently.

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%, so neither host nor port has documented meaning in the schema. The description implies connecting to a host and TCP port but adds no detail about hostname/IP format, port range, or what values are valid beyond the schema's raw constraints.

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 operation: a single TCP connect returning open/closed status plus latency. The word 'Single' distinguishes it from the sibling net.portscan, though it does not explicitly name that alternative.

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 explicit guidance on when to use this tool versus net.ping, net.portscan, net.httpcheck, or net.ssl. The word 'Single' implies one-port checking, but no conditions, exclusions, or alternatives are stated.

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