Skip to main content
Glama
12211725-star

hospital-vuln-scanner-mcp

scan_host_ports

Scans a target host to identify open ports and running services, assessing potential security vulnerabilities.

Instructions

端口扫描 - 真实检测主机开放的端口和服务

功能说明

对目标主机进行端口扫描,识别开放的端口和运行的服务。 如果系统安装了 nmap 会自动使用,否则使用 Python socket 扫描。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hostYes目标主机IP或域名
portsNo端口列表,如 [22, 80, 443];不填则扫描常见端口

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

The description reveals a key behavioral trait: if nmap is installed it will be used, otherwise Python socket scanning. This is useful for understanding performance and reliability. Without annotations, it provides adequate transparency, though it could mention potential intrusiveness or rate limiting.

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 relatively concise with two sentences plus a header. It front-loads the purpose and includes relevant detail. A bit more structure could help, but it is efficient.

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 simple tool with 2 parameters and an output schema, the description covers main behavior (scan method, default ports). It does not need to explain return values because the output schema exists. It is complete enough for an agent to use.

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 description coverage is 100%, so the schema already documents both parameters. The description adds that leaving 'ports' empty scans common ports, which is helpful but not essential. It does not add syntax or format details beyond 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 clearly states the tool performs port scanning to detect open ports and services on a host. It distinguishes from sibling tools like 'discover_network' by focusing specifically on host ports and providing detail about scanning method (nmap vs socket). The title and description are aligned.

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?

The description does not explicitly state when to use this tool versus alternatives like 'start_scan' or 'discover_network'. It lacks guidance on prerequisites, limitations, or scenarios where the tool is appropriate or not.

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/12211725-star/hospital-vuln-scanner-mcp'

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