Skip to main content
Glama

create_subnet

Create a Neutron subnet on a network, using either a provided CIDR or a subnet pool for automatic allocation. Set DHCP, gateway, DNS, IPv6 modes, and allocation pools as needed.

Instructions

Create a Neutron subnet. Service: Neutron (network). Mutates state.

Pass cidr, or subnetpool_id so Neutron allocates the prefix. prefixlen is the length requested from that pool. ipv6_address_mode and ipv6_ra_mode are slaac, dhcpv6-stateful, or dhcpv6-stateless. allocation_pools is a list of objects with start and end addresses.

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": {
      "network_id": "<network_id>"
    },
    "name": "create_subnet"
  }
}

Input Schema

NameRequiredDescriptionDefault
cidrNo
nameNo
prefixlenNo
gateway_ipNo
ip_versionNo
network_idYes
descriptionNo
enable_dhcpNo
ipv6_ra_modeNo
subnetpool_idNo
dns_nameserversNo
allocation_poolsNo
ipv6_address_modeNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden, and it only adds the terse note 'Mutates state.' It says nothing about required permissions, whether the CIDR must fall inside the parent network's range, what errors arise on overlap, or whether the call is idempotent. For a 13-parameter write operation with zero annotation coverage, that is a substantial gap.

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?

It is short and front-loaded: purpose and mutation status come first, parameter notes follow in a single compact block. The 'Service: Neutron (network)' fragment is mildly redundant but costs little.

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?

An output schema exists, so return values need not be explained, and the description covers the trickiest allocation parameters. Against 13 parameters with 0% schema coverage and no annotations, though, the absence of any note on the required network_id, defaults, or failure conditions leaves it only partially complete.

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 0%, so the description must compensate, and it does partly: it explains the cidr/subnetpool_id mutual exclusivity, the meaning of prefixlen, the allowed ipv6_address_mode/ipv6_ra_mode values (useful since no parameter has an enum in the schema), and the start/end shape of allocation_pools. However, roughly half the parameters — including the required network_id, plus gateway_ip, ip_version, enable_dhcp, dns_nameservers, name, and description — get no mention at all.

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 opening states a specific verb and resource ('Create a Neutron subnet'), plus the owning service, so an agent knows exactly what is being created. It does not explicitly contrast with siblings, though create_subnet vs get_subnet/delete_subnet is self-evident from the names.

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?

There is no explicit when-to-use versus alternative guidance, and no prerequisites (quota, admin rights, network existence) are mentioned. The one conditional rule it does give — pass cidr, or subnetpool_id to let Neutron allocate the prefix — is genuine selection guidance, which lifts it above a bare 2.

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