Skip to main content
Glama

Get port

get_port
Read-onlyIdempotent

Fetch a single OpenStack port by ID to inspect its network, device, MAC, fixed IPs, security groups, and address pairs. Use list_ports first to find port IDs.

Instructions

Get one port by ID: network, device, MAC, fixed IPs, security groups, address pairs.

Use list_ports to find IDs by network or device. Returns not_found if the port is not visible to the selected project.

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_id": "<port_id>"
    },
    "name": "get_port"
  }
}

Input Schema

NameRequiredDescriptionDefault
port_idYesPort ID, as returned by list_ports.
project_idNoProject ID to work in; omit for the default project. Allowed values are listed by get_scope.

Output Schema

NameRequiredDescriptionDefault
idYes
nameNo
statusNo
device_idNo
fixed_ipsNo
network_idNo
project_idNo
descriptionNo
mac_addressNo
device_ownerNo
is_admin_state_upNo
security_group_idsNo
allowed_address_pairsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.2
    • addedInput schema / properties / port_id / description
      Added value: +"Port ID, as returned by list_ports."
  2. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world behavior, so the description only needs to add runtime traits. It adds two useful ones: a not_found failure mode and project-scoped visibility of the port. It does not discuss pagination or field expansion, but neither is relevant for a single-object get.

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 compact sentences with no wasted wording: capabilities first, then ID discovery and the failure case. Well front-loaded and easy to scan.

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?

An output schema exists, so return-value explanation is not needed, and the description still sketches the returned fields plus the not_found behavior. For a two-parameter read tool with full annotation coverage, this is nearly complete, lacking only an explicit note on project visibility semantics.

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 coverage is 100%, including descriptions for port_id ("as returned by list_ports") and project_id ("omit for the default project"). The description only reinforces the project scoping implicitly via "selected project" and adds no syntax or format detail beyond the schema, so baseline 3 applies.

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

Purpose5/5

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

States a specific verb and resource ("Get one port by ID") and enumerates what the returned port contains (network, device, MAC, fixed IPs, security groups, address pairs). This clearly distinguishes it from the plural sibling list_ports.

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

Usage Guidelines4/5

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

Explicitly directs the agent to list_ports to resolve IDs by network or device, which is the key routing decision between this tool and its sibling. It does not state an explicit when-not condition, but for a by-ID fetch tool the alternative is adequately implied.

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