Skip to main content
Glama

Create private network

create_private_network
Idempotent

Provision an approved private network for existing services when no suitable owned network exists, allocating a unique subnet from 100.64.0.0/10 or a specified free block.

Instructions

Create an approved private network for existing services when no suitable owned network exists. A false new-order private_network.available or order_availability result alone does not block this route; honor this endpoint's own quota and feature refusal. Every subnet is unique on the whole platform and comes from 100.64.0.0/10. Omit subnet and the platform allocates a free block of subnet_prefix_length (28..24, default 26 = 64 addresses; capabilities.private_network.subnet_sizes lists each size with its server count and suggested block); or name an aligned /28 through /24 inside 100.64.0.0/10 that no network holds (409 subnet_in_use), never both. Creation is asynchronous: poll its operation and get_private_network until network.port_intent_ready is true, then check attachment candidates. A successful network_graph_created operation and provisioning_status=configured describe the graph stage; the first guest has not yet qualified connectivity. Never wait for applied_generation to equal generation before the first attachment. Creation does not itself attach a server or buy a public address. Requires explicit networking:read for reads or networking:manage for changes; full/read defaults do not grant networking. The backend enforces ownership, feature availability and service 2FA locks. Read current capabilities and owned resource state first; obtain approval for the exact change. An accepted operation is pending, not proof of connectivity. Poll the returned operation/resource on its in_progress flag, waiting next_check_seconds between reads: while in_progress is true its reason_code is what is awaited (reason_kind waiting, e.g. a queued or pending reason, or a control plane that has not answered yet), never an error; only in_progress false with reason_kind failure is a failure. Preserve reason_code. On transport uncertainty inspect state and reuse only the original key and unchanged request; never automatically retry.

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": {
      "name": "<name>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "create_private_network"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
subnetNo
settingsNoUse only choices currently advertised by get_networking_capabilities. Custom addresses require an explicit subnet; DHCP is currently always enabled.
default_policyNoAdvertised creation policy; omission preserves the backend default. ingress_rules allows IPv4 egress while ingress follows rules/platform exceptions.
idempotencyKeyYesIdempotency-Key for this exact change; preserve it and the unchanged body on uncertain recovery
subnet_prefix_lengthNoSize of the allocated subnet when subnet is omitted; default 26

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changedv2.3.21
    • addedInput schema / properties / default_policy / description
      Added value: +"Advertised creation policy; omission preserves the backend default. ingress_rules allows IPv4 egress while ingress follows rules/platform exceptions."
    • changedInput schema / properties / default_policy / enum
      Previous value: -[
      -  "accept",
      -  "deny"
      -]New value: +[
      +  "accept",
      +  "deny",
      +  "ingress_rules"
      +]
    • addedInput schema / properties / settings / properties / dhcp_range / properties / end / pattern
      Added value: +"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"
    • addedInput schema / properties / settings / properties / dhcp_range / properties / start / pattern
      Added value: +"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"
    • addedInput schema / properties / settings / properties / dns_records / items / properties / ipv4 / pattern
      Added value: +"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"
    • addedInput schema / properties / settings / properties / dns_resolvers / items / pattern
      Added value: +"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"
    • addedInput schema / properties / settings / properties / dns_servers / items / pattern
      Added value: +"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"
    • changedInput schema / properties / settings / properties / gateway / anyOf
      Previous value: -[
      -  {
      -    "enum": [
      -      "auto",
      -      "none"
      -    ],
      -    "type": "string"
      -  },
      -  {
      -    "format": "ipv4",
      -    "type": "string"
      -  }
      -]New value: +[
      +  {
      +    "enum": [
      +      "auto",
      +      "none"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "format": "ipv4",
      +    "pattern": "^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$",
      +    "type": "string"
      +  }
      +]
    • addedInput schema / properties / subnet_prefix_length / anyOf
      Added value: +[
      +  {
      +    "const": 24,
      +    "type": "number"
      +  },
      +  {
      +    "const": 25,
      +    "type": "number"
      +  },
      +  {
      +    "const": 26,
      +    "type": "number"
      +  },
      +  {
      +    "const": 27,
      +    "type": "number"
      +  },
      +  {
      +    "const": 28,
      +    "type": "number"
      +  }
      +]
    • removedInput schema / properties / subnet_prefix_length / enum
      Removed value: -[
      -  24,
      -  25,
      -  26,
      -  27,
      -  28
      -]
    • removedInput schema / properties / subnet_prefix_length / type
      Removed value: -"number"
  2. First observedv2.3.16

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false, openWorldHint=false, and the description adds genuinely new behavior: asynchronous creation, reason_kind/reason_code semantics, the 409 subnet_in_use rejection, the 100.64.0.0/10 uniqueness constraint, and the networking:read vs networking:manage permission requirement. However, it is verbose and partially repeats the async/polling point ('An accepted operation is pending, not proof of connectivity' restates the earlier poll instruction), and the grading rubric's baseline for annotated tools means this dense but repetitive coverage lands at adequate rather than exceptional.

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

Conciseness2/5

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

The content is valuable but delivered as a dense wall of clauses with redundant loops — async creation and polling are explained twice, and idempotency/retry guidance appears at the end without a clear structural break from the failure-semantics discussion. The front-loading is only partial: the core call shape (subnet vs prefix) is buried mid-paragraph behind availability caveats.

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?

There is no output schema, so the description must carry return semantics, and it does: operation vs resource, provisioning_status=configured as graph stage only, network.port_intent_ready as the readiness signal, and in_progress/reason_kind failure classification. What keeps it off a 5 is the settings object: its many nested fields (gateway, dns_mode, dhcp_range, dns_records, internet_access) are left entirely to the schema's single summary sentence, so an agent has little prose guidance on which combinations are valid.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 67%, and the description compensates with high-value detail the schema cannot express: subnet and subnet_prefix_length are mutually exclusive ('never both'), the prefix range 28..24 with default 26 = 64 addresses, that sizes come from capabilities.private_network.subnet_sizes with server counts and suggested block, that allocated blocks are platform-unique, and the alignment requirement inside 100.64.0.0/10. The idempotencyKey semantics ('reuse only the original key and unchanged request') are also reinforced in prose beyond the schema's own note.

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 ('Create an approved private network') plus the scope condition ('for existing services when no suitable owned network exists') and explicitly excludes attachment ('Creation does not itself attach a server or buy a public address'), which routes the agent away from attach_private_network_port. An agent can distinguish it from list/get/attach siblings without opening a schema.

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

Usage Guidelines5/5

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

Gives explicit when-to-use (no suitable owned network exists), when-not (a false order_availability result alone does not block, but honor this endpoint's own quota refusal), a prerequisite sequence (read capabilities and owned state first, obtain approval), and a follow-up path (poll operation and get_private_network, then check attachment candidates). It also names a concrete anti-pattern ('never wait for applied_generation to equal generation before the first attachment').

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