create_namespace
Create a new Kubernetes namespace in a specified cluster context, with optional labels.
Instructions
Create a new namespace.
Args: context_name: The Kubernetes context name namespace: The name for the new namespace labels: Optional dictionary of labels to apply to the namespace
Returns: JSON string containing information about the created namespace
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": {
"context_name": "<context_name>",
"namespace": "<namespace>"
},
"name": "create_namespace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| labels | No | ||
| namespace | Yes | ||
| context_name | Yes |