Skip to main content
Glama

hss__ListPortHost

Lists hosts and containers that use a specified port, helping identify port exposure and inventory with filters for project, host IP, host name, port type, and pagination.

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

Input Schema

NameRequiredDescriptionDefault
portYes端口号
typeNo端口类型:目前包括TCP,UDP两种
limitNo每页显示数量
offsetNo偏移量:指定返回记录的开始位置
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.5/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and delivers almost none of it: it does not confirm the operation is a safe read, does not mention pagination (limit/offset defaults), sorting, result size, or whether project/enterprise-project scoping is required. It only restates the resource concept already implied by the name.

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?

There is zero filler and the single phrase is front-loaded, but for a nine-parameter, paged list operation it is undersized rather than concise. Nothing in the text is wasted, yet nothing is added either.

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 paged list tool with nine parameters, no annotations, and no output schema, the description should at least state that it returns host/container entries and how paging behaves. As written, an agent gets only a label and must rely entirely on the schema to call it correctly.

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 nine parameters (port, type, project_id, host_ip, host_name, category, enterprise_project_id, limit, offset) are documented in the schema itself. The description adds nothing beyond that baseline, so the neutral baseline of 3 applies.

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

Purpose3/5

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

The phrase "[HSS] 具备该端口的主机/容器信息" conveys the resource (hosts/containers) and a key filter (having a given port), implicitly a listing operation, so an agent can roughly guess the intent. However there is no verb, and it does not differentiate itself from near-neighbors such as ListPortStatistics or ListHostGroups; the agent must infer 'list hosts filtered by port' from the name plus the phrase.

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?

No when-to-use guidance is given: nothing says this is for locating hosts/containers exposing a given port, nor when to prefer ListPortStatistics (aggregate view) or other host-listing siblings. The agent receives no exclusions, prerequisites, or alternative 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