Skip to main content
Glama

get_open_ports

Lists open listening ports and associated processes on a remote Linux/Unix server via SSH, helping identify network services and potential security issues.

Instructions

List all open listening ports and their associated processes.

Args: host_name: Named host from SSH_HOSTS config; uses default host if omitted.

Returns: Listening ports with protocol, port number, and process name.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
host_nameNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations are provided, so the description carries the burden. It discloses the return format (protocol, port number, process name) and explains the host_name parameter. However, it does not explicitly state that the operation is read-only, nor does it address error conditions or permission requirements. For a simple list operation, this is adequate but not fully transparent.

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 exceptionally concise, with a single clear sentence followed by structured Args and Returns sections. Every piece of information earns its place, and the structure makes it easy to parse.

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?

For a simple tool with one optional parameter and an output schema, the description covers the purpose, parameter semantics, and return values. It lacks explicit alternative guidance, but this is a minor gap given the tool's simplicity and the clarity of its function.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has zero description coverage for the host_name parameter, but the description compensates by explaining it: 'Named host from SSH_HOSTS config; uses default host if omitted.' This adds meaningful context beyond the schema's minimal type/title info.

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: 'List all open listening ports and their associated processes.' This is a specific verb ('List') and resource ('open listening ports') with a clear scope, distinguishing it from siblings like list_processes or check_network_connectivity.

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?

While the description implies its use case (listing open ports), it does not explicitly state when to use it versus alternatives or provide exclusions. No alternatives are mentioned, so guidance is implied rather than stated.

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/zhouxiangjing/mcp-ssh'

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