Skip to main content
Glama

port_scan

Scan target IP or domain for open ports, services, OS detection, or vulnerabilities using Nmap. Choose from basic, service, os, full, or vulnerability scans.

Instructions

Perform Nmap port scan on a target IP or domain.

scan_type options:

  • "basic" : Top 100 ports, fast (-F)

  • "service" : Service & version detection (-sV -F)

  • "os" : OS detection, needs admin (-O -F)

  • "full" : All 65535 ports, slow (-p-)

  • "vuln" : Basic vulnerability scripts (--script vuln -F)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetYes
scan_typeNobasic

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

No annotations provided, so the description carries full burden. It discloses that 'os' scan requires admin privileges, 'full' scan is slow, and 'vuln' runs vulnerability scripts. These are useful behavioral traits beyond the schema.

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?

The description is front-loaded with the main purpose and then lists scan_type options in a bullet-like format. It is efficient but could be slightly shorter. 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 presence of an output schema and sibling tools, the description covers input parameters, scan behaviors, and special requirements. It does not explain output format, but that is handled by the output schema. It is sufficiently complete for the tool's complexity.

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 coverage is 0%, but the description adds full meaning: target is an IP or domain, and scan_type options are explained with their implications. This compensates completely for the lack of parameter descriptions in 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 starts with 'Perform Nmap port scan on a target IP or domain.' This clearly states the verb (perform) and resource (port scan) and distinguishes it from sibling tools like DNS enumeration or CVE lookup.

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 explains each scan_type option with what it does and trade-offs (e.g., 'fast', 'slow', 'needs admin'). This helps the agent choose the right type. However, it does not explicitly state when not to use this tool or mention alternative tools.

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/gaoharimran29-glitch/AynOps'

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