Skip to main content
Glama

scan_ports

Probe TCP ports on any host, grab banners, and automatically identify services and protocols for comprehensive service detection.

Instructions

TCP port scanning with banner grabbing and automatic service detection. Probes specified ports, reads initial banners, detects protocols (SSH, MySQL, Redis, FTP, SMTP, HTTP, PostgreSQL, VNC, RDP), and runs targeted service fingerprinting on detected services.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hostYesTarget host
portsNoPorts to scan (default: common service ports)
Behavior4/5

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

With no annotations provided, the description carries full burden and does well: it discloses that it probes ports, reads banners, detects protocols (listing examples), and runs targeted fingerprinting. It does not cover limitations (e.g., firewall impact) or what it does not do, but overall it provides a clear view of the tool's actions.

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 description is two sentences long, no wasted words. It front-loads the core function in the first sentence and elaborates in the second. Every sentence adds value.

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 the tool's moderate complexity (two simple params, no output schema), the description covers the main functionality. It mentions detected protocols and fingerprinting. It lacks details on return format or error handling, but for a port scanner the description is largely sufficient.

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 coverage is 100%, with descriptions for 'host' (target host) and 'ports' (default common ports). The description adds that it probes specified ports and defaults to common service ports, aligning with the schema. No additional syntax or constraints are provided, so baseline 3 is appropriate.

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 clearly states it performs TCP port scanning with banner grabbing and automatic service detection, listing specific protocols. It is a specific verb+resource combination. While the purpose is clear, it does not explicitly differentiate from sibling tools like scan_services, which also deals with service detection.

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 context on what the tool does but offers no guidance on when to use it vs. alternatives, nor does it mention any prerequisites, exclusion criteria, or scenarios where it should not be used. The sibling tools include more specialized scans (scan_dns, scan_http) and analytic tools, but no comparison is made.

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/badchars/fingerprint-mcp'

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