add_namespace_label
Add or update a label on a Kubernetes namespace. Provide the context, namespace, label key, and value to apply the label.
Instructions
Add or update a label on a namespace.
Args: context_name: The Kubernetes context name namespace: The name of the namespace label_key: The label key to add label_value: The label value to set
Returns: JSON string containing the updated namespace labels
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>",
"label_key": "<label_key>",
"label_value": "<label_value>"
},
"name": "add_namespace_label"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label_key | Yes | ||
| namespace | Yes | ||
| label_value | Yes | ||
| context_name | Yes |