Skip to main content
Glama
tailnet-agent-mcp
by MC-intel

check_ports

Read-only

Checks TCP connectivity to specified or common ports on a device, reporting open, closed, or filtered status to diagnose network and firewall access.

Instructions

TCP-connect check for ports on a device (default: a common set - ssh, http(s), smb, rdp, vnc, winrm, databases...). Reports open / closed / filtered.

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": {
      "device": "<device>"
    },
    "name": "check_ports"
  }
}

Input Schema

NameRequiredDescriptionDefault
portsNo
deviceYes
timeout_sNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds that results are classified as open/closed/filtered, which is real behavioral context, but it says nothing about how non-responsive hosts are handled or how a filtered result is distinguished from a timeout, and an output schema exists to carry return values.

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?

Two compact sentences, front-loaded with the mechanism and resource, and the parenthetical default list is informative without bloating the text. No filler or repetition.

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 tool is simple and has an output schema, so the description does not need to document return values. However, with 0% schema description coverage, the unexplained `timeout_s` and `device` parameters leave a real gap an agent must guess at when calling the tool.

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 for all three parameters. It explains the `ports` parameter's default (a common service set) but leaves `device` and `timeout_s` entirely unexplained, including what units/scale the timeout accepts and what happens when the connect attempt exceeds it.

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 and resource: a TCP-connect port check on a device, and enumerates the default port set. It implicitly distinguishes itself from ICMP-based or HTTP-layer siblings (ping_device, http_probe) by naming the TCP-connect mechanism, 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 Guidelines3/5

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

Usage is implied by the tool's mechanics — you reach for it to learn which ports respond on a host — but there is no explicit when-to-use/when-not guidance and no pointer to siblings such as http_probe for application-layer checks or ping_device for reachability-only tests.

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