Skip to main content
Glama

discover-hosts

Identify live hosts on a network using ping scan without port scanning. Returns lists of responsive and unresponsive hosts for 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
total_scannedNoTotal hosts scanned
scan_statsNoScan statistics
Behavior3/5

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

With no annotations provided, the description carries the full burden. It reveals the underlying tool (nmap -sn) and notes the authorization requirement, but does not disclose potential side effects (e.g., network noise, privilege requirements, or impact on targets).

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 (4 sentences plus a returns line) with no wasted words. It front-loads the core action, explains the method, provides use-case context, and includes a critical safety note. Every sentence adds distinct 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 tool's moderate complexity and the presence of an output schema, the description adequately covers what the tool does, how it works, and what it returns. It could mention prerequisites or potential limitations (e.g., network permissions), but overall it provides sufficient context for decision-making.

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?

All parameters have descriptions in the input schema (100% coverage), so the description adds no new meaning beyond schema. The description text itself does not elaborate on parameter semantics, meeting the baseline of 3.

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 explicitly states 'Discover live hosts on a network without performing a port scan' and specifies use of 'nmap ping scan (-sn)'. This clearly distinguishes it from sibling tools like scan-ports and detect-services, which have different purposes.

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 positions the tool as 'typically the first step in a network assessment' and emphasizes 'without performing a port scan', implying usage before port scanning. However, it does not explicitly state when not to use it or directly name 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/Vorota-ai/nmap-mcp'

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