Kubectl contexts
kube_contextsList available kubectl contexts and mark the current one, so you can identify and select clusters without parsing raw CLI output.
Instructions
List available kubectl contexts with current context marked.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "kube_contexts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| current | Yes | ||
| contexts | Yes | ||
| retained | No |