Skip to main content
Glama

vpc__NeutronListPorts

Queries VPC ports for a tenant with filters such as network, IP, status, and security group; returns up to 2,000 results and supports pagination for larger inventories.

Instructions

[VPC] 查询提交请求的租户的所有端口,单次查询最多返回2000条数据,超过2000后会返回分页标记。分页查询请参考分页查询。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "vpc__NeutronListPorts"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNo按照端口的ID过滤查询
nameNo按照端口的名称过滤查询
limitNo每页返回的个数
markerNo分页查询起始的资源ID,为空时查询第一页
statusNo按照端口状态过滤查询,取值范围:ACTIVE、BUILD、DOWN
device_idNo按照端口的设备ID过滤查询
fixed_ipsNo按照端口的IP地址过滤查询,fixed_ips=ip_address或者fixed_ips=subnet_id过滤查询
tenant_idNo按照端口所属的项目ID过滤查询
network_idNo按照端口所属的网络ID过滤查询
mac_addressNo按照端口的mac地址过滤查询
device_ownerNo按照端口的设备所属过滤查询
admin_state_upNo按照端口的管理状态过滤查询,取值范围:true or false
security_groupsNo按照安全组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?

With no annotations, the description carries the full burden, and it does disclose two useful traits: a 2000-record cap per query and the return of a pagination marker when exceeded. However, it never states that this is a safe read-only operation, what the response payload looks like, or any permission/tenant-scoping implications of 'the requesting tenant'.

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?

Two compact sentences front-load the scope and the 2000-record cap, with no filler. The trailing 'please refer to the pagination query' is a dangling cross-reference to a document the agent cannot access, which costs it the top score.

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

Completeness4/5

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

For a 13-parameter list tool with full schema coverage and no output schema, the description covers the one behavior the schema cannot express — the result cap and marker-based pagination. The main omission is sibling differentiation from vpc__ListPorts, which is material given how similar the two names are.

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%, and each of the 13 filter parameters already carries its own Chinese description, so the baseline of 3 applies. The description adds no meaning beyond the schema — it does not explain how filters combine, whether any are mutually exclusive, or what ordering results come back in.

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 — querying all ports belonging to the requesting tenant — so the agent knows exactly what entity is returned. It falls short of a 5 because it never distinguishes this from the near-identical sibling vpc__ListPorts, leaving the agent unable to choose between them from the description alone.

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 at all: no mention of alternatives such as vpc__ListPorts, ListPortsByTags, or CountPortsByTags, and no conditions under which this Neutron-namespaced variant is preferred. The only guidance offered concerns pagination, which is invocation mechanics rather than tool selection.

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