Skip to main content
Glama

net_probe_tcp

Open a TCP socket to an address and port to check whether a service is listening, using timeout and error details to explain refused connections.

Instructions

Open a TCP socket to address:port and report whether something listens there (22 = ssh, 3389 = rdp); timeout/error strings explain refusals.

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": {
      "address": "<address>",
      "port": "<port>"
    },
    "name": "net_probe_tcp"
  }
}

Input Schema

NameRequiredDescriptionDefault
portYes
addressYes
timeoutMsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and mostly succeeds: it discloses that a real TCP connection is opened, that the result is a listener presence check, and that refusals surface as timeout/error strings rather than silently failing. It does not discuss whether the probe has side effects or how errors are surfaced to the caller (returned vs thrown), which keeps it below a 5.

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 dense sentence that front-loads the action, then the report, then the error semantics, with zero filler. Every clause contributes information an agent would otherwise have to guess.

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?

For a three-parameter, no-output-schema, no-annotation network tool, the description covers the core contract but leaves 'timeoutMs' entirely undocumented and does not describe the shape of the returned error string. Adequate to invoke correctly, but not fully self-contained.

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%, so the description must compensate, and it does so only partially: it clarifies that address and port are joined into a socket target and gives illustrative port values, but the 'timeoutMs' parameter (default 2000, range 100-15000) is never mentioned.

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?

Names a specific verb and resource ('Open a TCP socket to address:port') plus the outcome it reports ('whether something listens there'), which is concrete enough to distinguish it from net_ping and rdp_connect. It stops short of explicitly naming a sibling as the alternative, so differentiation is implied rather than stated.

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?

The port examples (22 = ssh, 3389 = rdp) imply the intended use case of service-reachability checks, but there is no explicit when-to-use guidance, no statement of when to prefer net_ping or rdp_connect, and no advice on choosing a timeout value.

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