Skip to main content
Glama
MCP-OpenStack-Ops

MCP-OpenStack-Ops

by call518

Get Subnets

get_subnets

List Neutron subnets for the current project, including shared and external networks, or retrieve details for one subnet by name or ID.

Instructions

List the current project's Neutron subnets, plus the subnets of shared and external networks, or show one subnet.

For subnets grouped under their networks, use get_network_details.

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

Input Schema

NameRequiredDescriptionDefault
subnet_nameNoOptional subnet name or ID. When provided, show that subnet (with host_routes, created_at and updated_at); otherwise list subnets.
all_projectsNoList only. If True, list every subnet Neutron shows the credential in any project (like 'openstack subnet list' as an administrator). Requires ALLOW_CROSS_PROJECT_READ=true on the server; rows then carry project_name and shared, and the result has a scope (check scope.warning).

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv4.1.3

TDQS

A3.9/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 behavioral burden. It does disclose meaningful scope (current project plus shared and external network subnets) and the list-vs-detail switch, but says nothing about permissions, cross-project authorization requirements, or result volume — those live only in the schema's all_projects description.

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 short sentences with the primary list behavior front-loaded and the sibling routing second. The trailing "or show one subnet" is slightly tacked-on without stating its trigger, but there is no filler.

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 values need not be explained, and the parameters are fully documented in the schema. The description covers scope and both modes; the only gap is that, with no annotations, it does not mention read-only semantics or authorization prerequisites in its own text.

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 the schema already documents both subnet_name and all_projects in detail, including the ALLOW_CROSS_PROJECT_READ requirement and scope.warning. The description only implies that "show one subnet" corresponds to subnet_name and adds no syntax or format detail beyond that.

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?

The description uses a specific verb and resource ("List ... Neutron subnets") and states the exact scope: current project plus subnets of shared and external networks. It also names the sibling get_network_details for the grouped-by-network view, so an agent can distinguish the two without opening either schema.

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?

It explicitly routes the grouped-under-network case to get_network_details, which is a clear alternative with a condition. The dual list/show mode is stated but its trigger (supplying subnet_name) is left to the schema, and there is no guidance on when not to use the tool.

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