Skip to main content
Glama

Scan ports

scan_ports
Read-onlyIdempotent

Scan common TCP ports on a domain to see which services are publicly accessible. Checks 16 ports: FTP(21), SSH(22), SMTP(25), HTTP(80), POP3(110), IMAP(143), HTTPS(443), SMTPS(465), SMTP-submission(587), IMAPS(993), POP3S(995), MySQL(3306), RDP(3389), PostgreSQL(5432), HTTP-alt(8080), HTTPS-alt(8443). Returns { domain, ip, openPorts[], closedPorts[] }. Call this when someone asks what services are running on a server, whether a specific port is open, or to check firewall exposure. Requires the customer to be signed in.

Input Schema

NameRequiredDescriptionDefault
domainYesDomain to scan (e.g. "example.com").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description adds genuinely non-redundant context: the exact 16-port coverage ceiling (so the agent knows MySQL-alt or 6379 is not checked), the return object shape, and an auth precondition. It omits scan duration/timeouts and any rate limiting.

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?

Front-loaded with purpose, then scope, then return shape, then when-to-use. The long port enumeration is verbose but each entry carries real information about coverage. Auth requirement is tacked on at the end rather than placed with prerequisites.

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?

There is no output schema, but the description compensates by describing the returned { domain, ip, openPorts[], closedPorts[] } shape, and it discloses the auth precondition. Only the temporal aspect (how long a scan takes, whether results are cached) is unaddressed.

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% for the single required 'domain' parameter, which already includes an example. The description confirms the domain-based scope but adds no format, normalization, or validation nuance beyond the schema. Baseline 3 is appropriate.

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?

States a specific verb and resource (scan common TCP ports on a domain) and immediately bounds the scope to 16 enumerated ports with their service names. An agent can distinguish it from check_ssl, check_uptime, or check_security_headers without opening any schema.

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?

Explicitly lists the triggering intents: 'what services are running on a server', 'whether a specific port is open', or 'check firewall exposure'. It also states the prerequisite that the customer must be signed in. It does not name a sibling alternative, so it stops short of a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources