Skip to main content
Glama

discover-hosts

Discover which hosts are up on a network using nmap ping scans, without port scanning. Use it as the first step in a network assessment.

Instructions

Discover live hosts on a network without performing a port scan.

Uses nmap ping scan (-sn) to identify which hosts are up on the target network. This is typically the first step in a network assessment.

IMPORTANT: Only scan networks you are authorized to scan.

Returns: HostDiscoveryResult with lists of hosts that are up and down.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetYesNetwork range to scan: CIDR notation (192.168.1.0/24) or IP range. Max /24 network size.
timingNoTiming template: "paranoid" through "insane". Default: "normal".normal
timeoutNoMaximum scan duration in seconds. Default: 600.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
hosts_upNoList of hosts that are up
hosts_downNoList of hosts that are down
scan_statsNoScan statistics
total_scannedNoTotal hosts scanned
Behavior4/5

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

With no annotations provided, the description carries the burden of disclosing behavior. It clearly states the tool uses nmap ping scan (-sn), explicitly rules out port scanning, and describes the return type (HostDiscoveryResult with up/down host lists). It also adds a safety note about authorized scanning. It stops short of detailing edge cases (e.g., hosts that block ICMP), but the core behavioral disclosure is solid.

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 compact and front-loaded with the core purpose. Every sentence earns its place: purpose, method, usage context, authorization warning, and return summary. No wasted words or filler.

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?

Given that the output schema exists (covering the return value) and the input schema is fully documented, the description provides all necessary operational context: what it does, how it does it (nmap -sn), when to use it (first step), and a safety constraint. It is complete for a straightforward host-discovery tool.

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?

The input schema already provides 100% coverage of all three parameters (target, timing, timeout) with descriptions. The tool description itself adds no additional parameter semantics beyond what the schema offers, so a baseline score of 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?

The description clearly states the tool's function: discovering live hosts without a port scan. It uses a specific verb ('Discover'), identifies the resource (live hosts on a network), and distinguishes itself from siblings by explicitly noting it performs no port scan and is the typical first step in a network assessment.

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 provides clear usage context, noting this is typically the first step in a network assessment and that it does not perform a port scan. It also includes an authorization warning. However, it does not explicitly name alternative sibling tools (e.g., scan-ports) for follow-up steps, so it falls just short of full explicit guidance.

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