Skip to main content
Glama

port_scan

Scan TCP ports on a host to discover open services and identify which applications are running on a server.

Instructions

Scan TCP ports on a host to discover open services. Performs TCP connect scan on specified ports. Use this to find what services are running on a server. Default scans common ports (21,22,23,25,53,80,110,143,443,445,993,995,1433,3306,3389,5432,5900,6379,8080,8443,9200,27017).

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": {
      "host": "<host>"
    },
    "name": "port_scan"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostYesHostname or IP address to scan
portsNoSpecific ports to scan. Defaults to common service ports.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does add real value by naming the scan technique ('TCP connect scan') and enumerating the default port set, but it says nothing about intrusiveness, expected duration, rate limiting, or whether scanning a host may trigger IDS/alerting.

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?

Three sentences, front-loaded with the core action and scan type before the use case and defaults. The long port list is verbose but earns its place as concrete default documentation; nothing here is filler.

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?

For a simple two-parameter tool this covers inputs well, but with no annotations and no output schema the description never indicates what a result looks like (e.g. host/port/state tuples) or whether the scan is intrusive. Adequate, with clear gaps an agent would notice when interpreting results.

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?

Schema coverage is 100%, so the baseline is 3, but the description goes beyond the schema's vague 'Defaults to common service ports' by listing the exact 23 default ports. That enumeration is genuinely useful for deciding whether an explicit ports argument is needed, though port syntax/format is still left to the schema.

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 opens with a specific verb and resource ('Scan TCP ports on a host') and states the goal ('discover open services'), which cleanly separates it from siblings like dns_lookup, whois_lookup, or http_headers. An agent can tell at a glance that this is the active network-scanning tool.

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?

'Use this to find what services are running on a server' gives a positive use case but no exclusions or alternatives. With a sibling like full_recon in the catalog, an agent gets no signal about when a broad recon sweep should be preferred over a targeted port scan, so routing is only implied.

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