Skip to main content
Glama

hss__ListPorts

Lists open ports on a specified Huawei Cloud host to identify exposed services and support security checks; filter by port, protocol, status, or host details.

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

Input Schema

NameRequiredDescriptionDefault
portNo端口号
typeNo端口类型:目前包括TCP,UDP两种
limitNo每页显示数量
offsetNo偏移量:指定返回记录的开始位置
statusNo端口状态,包含如下:
host_idYes主机id
host_ipNo主机ip
categoryNo类别,默认为host,包含如下:
host_nameNo主机名称
project_idYes项目ID
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 disclosure burden. It does not state that the operation is read-only, whether the host agent must be installed, what permission or enterprise-project scoping applies, or how results are paginated, even though limit/offset exist in the schema.

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 short sentence with the resource front-loaded and no filler. Its brevity is efficient, though it borders on under-specification rather than being genuinely well-structured.

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 an 11-parameter tool with no annotations and no output schema, the description is far too thin: it never describes the shape of returned port records (port, type, status), nor clarifies the category/status filter values whose schema descriptions are truncated ('包含如下:'). An agent must open the schema and guess the return format.

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 all 11 parameters including host_id, project_id, filters, and pagination defaults. The description adds only the 'single server' framing and nothing about filter combinations or required-vs-optional semantics, so the baseline 3 is appropriate.

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?

The description states a specific verb and resource ('查询...开放端口列表') scoped to a single server, which is enough to distinguish it from VPC-style port listings in principle. It does not name any sibling or explicitly contrast itself with vpc__ListPorts/workspace__ListPorts, so it stops short of full differentiation.

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 when-to-use guidance, no prerequisites, and no mention of alternatives. The agent is left to infer from the tool name alone that this is the host-security (HSS) view of open ports rather than a network/VPC port listing.

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