namespace_metadata_set
Set or delete a label or annotation on a Kubernetes namespace, allowing updates to metadata without failures even for missing keys.
Instructions
Set or delete one label or annotation on a namespace.
Deleting a key that does not exist succeeds.
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": {
"namespace": "<namespace>",
"kind": "<kind>",
"key": "<key>"
},
"name": "namespace_metadata_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| kind | Yes | ||
| value | No | The value to set. Omit or pass null to delete the key instead. | |
| namespace | Yes | ||
| kubeconfig_path | No |