Skip to main content
Glama

scan-vulnerabilities

Scan a target for known vulnerabilities using Nmap's scripting engine. Returns CVE identifiers for detected issues.

Instructions

Scan for known vulnerabilities using Nmap Scripting Engine (NSE).

Runs NSE vulnerability detection scripts against the target. Uses safe script categories by default. Results include CVE identifiers when available.

IMPORTANT: Only scan targets you are authorized to scan. Vulnerability scanning may trigger security alerts on the target network.

Returns: VulnScanResult with discovered vulnerabilities and their details.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
portsNoPort specification. If omitted, scans nmap default ports.
targetYesTarget to scan: IP address or hostname.
timingNoTiming template. Default: "normal".normal
scriptsNoNSE script specification. Examples: "vuln", "auth", "default,safe", "http-vuln-*". Only categories from {auth, default, discovery, safe, version, vuln} are allowed. If omitted, uses "vuln" category.
timeoutNoMaximum scan duration in seconds. Default: 600.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
commandYesThe nmap command that was executed (sanitized)
warningsNoScan warnings
raw_outputNoRaw nmap output text
hosts_scannedNoNumber of hosts scanned
vulnerabilitiesNoDiscovered vulnerabilities
Behavior3/5

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

No annotations are present, so the description carries the burden. It discloses default safe script categories, potential security alerts, and the return type. However, it states 'safe script categories by default' while the schema says the default category is 'vuln', creating an internal inconsistency that undermines transparency.

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 appropriately sized and front-loaded with the core purpose. The 'Returns' section is slightly redundant with the output schema, but it is brief and does not waste space.

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?

Despite no annotations, the description covers purpose, default behavior, a warning, and return type. The internal safe/vuln inconsistency and lack of explicit sibling comparisons are minor gaps, but overall it provides sufficient context for a tool with an output schema.

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%, so the baseline is 3. The description adds no extra meaning to the parameters; it only mentions CVE identifiers in results, which relates to output rather than parameters.

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 it scans for known vulnerabilities using NSE, with a specific verb and resource. It distinguishes itself from sibling tools like scan-ports and detect-services by focusing on vulnerability detection and CVE identifiers.

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?

Usage context is implied ('Scan for known vulnerabilities') but not explicitly contrasted with sibling tools. The authorization warning is a legal reminder, not guidance on when to choose this tool over alternatives.

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/vorotaai/nmap-mcp'

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