Skip to main content
Glama

hss__ShowCommonPort

Retrieve detailed information for a specified port, including local port number, protocol type, risk level, and port description.

Instructions

[HSS] 呈现某一端口详细信息,如本地端口:80 类型:TCP 危险程度:正常 端口描述:常用于SSH(SecureShell)-远程登录协议,用于安全登录文件传输(SCP,SFTP)及端口重新定向。

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": {
      "categoty": "<categoty>",
      "port": "<port>",
      "project_id": "<project_id>"
    },
    "name": "hss__ShowCommonPort"
  }
}

Input Schema

NameRequiredDescriptionDefault
portYes端口号
categotyYes返回的资产类别
project_idYes项目ID
enterprise_project_idNo主机所属的企业项目ID。0

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden. The word 呈现 (present/show) implies a read-only lookup, and the example usefully discloses the shape of the returned data (port, protocol type, risk level, description). However, it says nothing about permissions, whether the port must be a known/common port, or any error behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The definition is a single front-loaded sentence, but a large share of it is a verbose worked example of return fields rather than essential invocation guidance. It is not wasteful enough to be poor, but the example crowds out more valuable when-to-use information.

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

Completeness3/5

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

The tool is moderately complex (four parameters, three required, no output schema, no annotations). The description covers purpose and sample output but omits usage guidance and does not clarify the meaning of the misspelled 'categoty' asset-category parameter beyond what the schema states, leaving it only minimally adequate.

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 all four parameters (port, categoty, project_id, enterprise_project_id) are already documented in the schema. The description adds no extra meaning about parameter values or interactions, so the baseline of 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?

The description gives a specific verb (呈现/show) and resource (某一端口详细信息), and the example enumerates the fields returned (local port, type, risk level, description). It is clear what the tool retrieves, though it does not distinguish itself from similar port-lookup siblings such as vpc__ShowPort.

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 tool, no prerequisites, and no mention of alternatives or when not to use it. The agent must infer that this is a read-only lookup of a known/common port from the name alone.

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