Skip to main content
Glama

port_scan

Actively probe a host to identify open TCP ports and running services among common ones like HTTP, HTTPS, SSH, and databases. Only scan authorized targets.

Instructions

Probe a host for a fixed set of common TCP ports (HTTP, HTTPS, SSH, FTP, SMTP, DNS, and common databases) and report which are open, the service name, and the response time. BEHAVIOR: this makes an ACTIVE TCP connection to the target. It is non-intrusive — a connect probe only; it does not authenticate, send exploits, or transfer data — and changes nothing on the target (read-only), but the connection is visible in the target's logs, so only scan hosts you own or are explicitly authorized to test. Use this to confirm which services are exposed. Use ssl_check or http_security instead to assess a specific service's configuration. Requires no API key; rate-limited. Returns a per-port open/closed list with service names.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hostYesHostname or IP to probe (e.g., 'example.com' or '203.0.113.10'). A 'host:port' form is accepted to hint a specific port. Only supply targets you own or are authorized to test.
Behavior5/5

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

No annotations are provided, so the description fully carries the behavioral disclosure burden. It explains the tool makes active TCP connections, is non-intrusive (connect probe only, no authentication/exploits/data transfer), is read-only but visible in target logs. It also notes rate limiting and lack of API key requirements, providing complete transparency.

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 efficiently structured, starting with the core action, then behavioral notes, usage guidelines, and constraints. Every sentence adds unique value without redundancy, and it is appropriately sized given the tool's complexity.

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

Completeness5/5

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

Despite no output schema, the description explains return type (per-port open/closed list with service names). It covers input, behavior, constraints (authorization, visibility in logs), and rate limits. All necessary context for an agent to select and invoke the tool correctly is present.

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

Parameters4/5

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

With only one parameter and 100% schema description coverage, the baseline is 3. The description adds value by clarifying the host parameter can accept a 'host:port' form to hint a specific port and emphasizes authorization, but the schema already describes the parameter well.

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 probes a host for common TCP ports and reports open ports, service names, and response times. It uses specific verbs like 'probe' and 'report', and distinguishes from siblings by naming ssl_check and http_security as alternatives for specific service configuration assessment.

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

Usage Guidelines5/5

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

The description explicitly states when to use the tool ('confirm which services are exposed') and when not to ('use ssl_check or http_security instead'). It also includes authorization requirements and rate limits, guiding appropriate usage.

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/node-man/dechonet-mcp'

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