Skip to main content
Glama
labeveryday
by labeveryday

batch_port_check

Simultaneously scan multiple TCP ports on a host to determine open and closed status, helping identify running services.

Instructions

Check multiple TCP ports on a single host concurrently.

Use this tool to quickly scan multiple ports on a host, such as checking which common services are running. Returns open/closed status for each port.

Args: target: Hostname or IP address to check ports: List of TCP port numbers to check (e.g., [22, 80, 443, 3306]) timeout: Connection timeout per port in seconds (default: 2) max_concurrent: Maximum concurrent checks (default: 20)

Returns: Batch results with per-port status, open/closed counts, and summary

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetYes
portsYes
timeoutNo
max_concurrentNo
Behavior3/5

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

With no annotations, the description bears full burden. It mentions concurrency and default parameters but omits details like behavior on unreachable hosts or filtered ports. Adequate but minimal.

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?

Description is concise and well-structured: brief intro, Args block, Returns summary. Every sentence adds value without redundancy.

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

Completeness4/5

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

Given no output schema and no annotations, the description covers inputs well and mentions output structure (per-port status, counts, summary). Could specify output shape more, but acceptable.

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

Parameters5/5

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

Schema has 0% description coverage, but the description's Args block explains each parameter with defaults and examples (e.g., [22, 80, 443]). Fully compensates for missing schema descriptions.

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

Purpose5/5

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

The description clearly states the tool checks multiple TCP ports on a single host concurrently. It distinguishes from siblings like port_check (single port) and batch_ping (ICMP).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

The description says to use for quickly scanning multiple ports on a host, e.g., checking common services. It provides context but lacks explicit exclusions or alternatives, though siblings are listed.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/labeveryday/network-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server