Skip to main content
Glama

vpc__ListPorts

Lists all VPC ports for a tenant and returns up to 2,000 records per query, with filters such as ID, name, status, network, MAC address, and security group to locate specific ports.

Instructions

[VPC] 查询提交请求的租户的所有端口,单次查询最多返回2000条数据。

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": "vpc__ListPorts"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNo按照port_id过滤查询
nameNo功能说明:按照name过滤查询
limitNo每页返回的个数
markerNo分页查询起始的资源ID,为空时查询第一页
statusNo功能说明:按照status过滤查询
device_idNo按照device_id过滤查询
fixed_ipsNo按照fixed_ips=ip_address或者fixed_ips=subnet_id过滤查询
enable_efiNo按照是否使能efi过滤查询
network_idNo按照network_id过滤查询
project_idYes项目ID
mac_addressNo按照mac_address过滤查询
device_ownerNo按照device_owner过滤查询
admin_state_upNo按照admin_state_up进行过滤
security_groupsNo按照安全组ID列表过滤查询
enterprise_project_idNo功能说明:企业项目ID,用于基于企业项目的权限管理。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does disclose one genuinely useful behavioral trait: a single query returns at most 2000 records, which hints at truncation risk. However, it never explains pagination via marker/limit, whether results are truncated silently, or the shape of the returned port objects.

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 compact sentence with the cap information front-loaded alongside the purpose. The "[VPC]" prefix is filler but conventional, and nothing else is wasted.

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?

For a 15-parameter listing tool with no annotations and no output schema, the description is thin: it omits return shape, pagination semantics, and result ordering. The fully documented schema compensates for the parameter side, but behavioral gaps remain for an agent deciding how to page through large result sets.

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 15 parameters (filters like status, device_owner, fixed_ips, plus limit/marker) are already documented in the schema. The description adds no filtering semantics, no guidance on combining filters, and no clarification of how the 2000 cap interacts with the limit parameter, so the 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?

"[VPC] 查询提交请求的租户的所有端口" gives a specific verb (查询) and resource (端口) plus scope (tenant-wide), so the agent knows this is an unfiltered-by-default port listing. It does not differentiate itself from siblings such as vpc__NeutronListPorts or vpc__ListPortsByTags, leaving ambiguity about which list variant to pick.

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 exclusions, and no mention of alternatives even though vpc__ListPortsByTags and vpc__NeutronListPorts exist and could be confused with this tool. The tenant-scoping phrase implies a default listing behavior, but any actual routing guidance must be inferred.

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