Skip to main content
Glama

List ports

list_ports
Read-onlyIdempotent

List OpenStack ports with fixed IPs and security groups, and filter or page results by status, device, network, or project.

Instructions

List the project's ports with fixed IPs and security groups.

Paged with limit and marker.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum items to return (1-100, default 50).
markerNonext_marker from the previous page; omit for the first page.
statusNoPort status filter, for example ACTIVE or DOWN.
device_idNoServer or router ID owning the port.
network_idNoNetwork ID whose ports to list.
project_idNoProject ID to work in; omit for the default project. Allowed values are listed by get_scope.

Output Schema

NameRequiredDescriptionDefault
itemsYes
limitYesMaximum number of items requested.
completeYesTrue when no more items exist beyond this page.
resourceYesResource type of the items.
project_idYesProject whose session produced the list.
next_markerNoPass as marker to read the next page; null when complete or when the API has no marker paging.
observed_atYesUTC time the list was read.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.2
    • addedInput schema / properties / network_id / description
      Added value: +"Network ID whose ports to list."
    • addedInput schema / properties / status / description
      Added value: +"Port status filter, for example ACTIVE or DOWN."
  2. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and openWorld, so the safety profile is covered. The description contributes the pagination model (limit plus marker), which is genuinely useful behavior beyond annotations, but says nothing about result size, ordering, or what happens when filters match nothing.

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

Conciseness5/5

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

Two short sentences, zero padding, with the primary purpose front-loaded and the pagination note second. Nothing in the text could be removed without losing information.

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?

With an output schema, rich annotations, and full parameter documentation, the description only needs to establish purpose and iteration behavior, which it does. It is slightly thin on how the status/device_id/network_id filters interact with project scoping, but nothing essential for a correct call is missing.

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 every parameter (limit, marker, status, device_id, network_id, project_id) is already documented with types, bounds and examples. The description's only parameter-adjacent content is the limit/marker pagination note, which merely restates the schema; 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?

States a specific verb and resource ("List the project's ports") and adds scope detail (fixed IPs and security groups included). It is clearly distinguishable from get_port by the plural list framing, but it never names get_port or list_networks as the alternative for single-resource or network-scoped lookups.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

"Paged with limit and marker" gives practical guidance on iterating pages, and the schema filters imply when to narrow results. However, there is no explicit statement of when to use this versus get_port (single port) or list_networks (network-first browsing), so selection guidance is only implied.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.