Skip to main content
Glama
mcp-netalertx
by Je-Bin

netalertx_get_open_ports

Retrieves open ports recorded by NetAlertX for an IP or MAC address from the last NMAP scan; run a scan in NetAlertX first if no data is stored.

Instructions

Open ports recorded by NetAlertX for a target (IP address or MAC address). The data comes from the last NMAP scan; if nothing is stored, run an NMAP scan from the NetAlertX UI (Net tools) first.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "target": "<target>"
    },
    "name": "netalertx_get_open_ports"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the burden is on the description, and it delivers the two things an agent most needs: the data provenance (last NMAP scan) and the fact that results may be empty for that reason. It omits error behavior and any auth/permission notes, but the staleness caveat is the critical disclosure.

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?

Two sentences, no filler, with the resource identified first and the precondition second. Every clause carries information the agent needs.

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?

An output schema exists, so return values need not be explained; what remains needed for correct invocation is the identifier format and the data-freshness caveat, both present. Only the cross-reference to the scan-triggering sibling is missing.

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?

Schema coverage is 0% and the schema property is only labeled 'Target', so the description does real work by specifying the accepted identifier forms (IP address or MAC address). That resolves the main ambiguity for a single required parameter, though it says nothing about format normalization or invalid-input handling.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Open ports recorded by NetAlertX') and scopes it to a single target, which cleanly separates it from netalertx_get_device and netalertx_get_network_topology. It stops short of explicitly naming a sibling to avoid, so it lands just under the top mark.

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?

Provides a useful precondition: if no data is stored, run an NMAP scan from the NetAlertX UI first. However, it never points to the obvious sibling netalertx_trigger_network_scan as the way to produce that data, and gives no guidance on when to prefer this over netalertx_get_device for the same target.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.