create_namespace
Creates a vSphere Namespace on a Supervisor Cluster, with a preview mode that shows the blast radius before applying changes.
Instructions
[WRITE] Create a vSphere Namespace on a Supervisor Cluster.
Without confirm=True this only previews: it returns blast_radius (the spec that would be applied, and whether the name is already taken) and creates nothing. Show it to the user and get their decision. Do not set confirm=True on your own because the user asked earlier — they have not seen the preview yet. confirm=True returns {action: "created", namespace, status, cluster, blast_radius}; it is refused when the name is taken (use update_namespace) or the existing names could not be read. Confirm with get_namespace afterwards.
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>",
"cluster_id": "<cluster_id>",
"storage_policy": "<storage_policy>"
},
"name": "create_namespace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Namespace name (lowercase, no spaces). | |
| target | No | vCenter in config.yaml; omit for the default. | |
| confirm | No | False (default) returns the blast radius and changes nothing. True applies it. | |
| cpu_limit | No | MHz. Omit for no limit. | |
| cluster_id | Yes | Supervisor MoRef (from check_vks_compatibility). | |
| description | No | Free-text label. Omit for none. | |
| storage_policy | Yes | Policy ID (from list_supervisor_storage_policies). | |
| memory_limit_mib | No | MiB. Omit for no limit. |