Skip to main content
Glama

hss__ListPortStatistics

Queries open port statistics for servers, letting you filter by port or protocol to count affected hosts and review exposed services.

Instructions

[HSS] 查询开放端口列表,支持通过传入端口或协议类型查询服务器数

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": {
      "project_id": "<project_id>"
    },
    "name": "hss__ListPortStatistics"
  }
}

Input Schema

NameRequiredDescriptionDefault
portNo端口号,精确匹配
typeNo端口类型
limitNo每页显示数量
offsetNo偏移量:指定返回记录的开始位置
statusNo端口状态,包含如下:
categoryNo类别,默认为host,包含如下:
sort_dirNo升序还是降序,默认升序,asc
sort_keyNo排序的key值,目前支持按照端口号port排序
project_idYes项目ID
port_stringNo端口字符串,用来进行模糊匹配
enterprise_project_idNo主机所属的企业项目ID。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. It implies a read-only query but says nothing about pagination behavior, default result size, or the fact that results are scoped to a required project_id, leaving behavioral expectations largely unstated.

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?

A single front-loaded sentence with the [HSS] tag and no filler, though it is slightly undersized for an 11-parameter tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with 11 parameters, a required project_id, pagination/sorting options, and no output schema or annotations, the description does not explain defaults, sorting semantics, or result shape. Important context an agent needs is missing.

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 coverage is 100%, so the schema already documents all 11 parameters. The description only echoes the port and type filters and adds no format details, syntax, or interaction rules beyond what the schema provides; baseline 3 applies.

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 (query the open-port list) and adds that it can be filtered by port or protocol type. The phrase "查询服务器数" (query server count) creates mild ambiguity about whether this returns ports or per-port server counts, and no sibling tool is named for contrast.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this versus related siblings such as ListPortHost or ShowCommonPort, and no stated preconditions. The only hint is that port/protocol filters are supported, which is parameter guidance rather than usage routing.

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

Deploy Server

Other Tools