Get any resource
get_resourceRead any Kubernetes object by apiVersion, kind, and name to inspect cluster resources while redacting Secret values and masking credential-shaped env values and ConfigMap entries.
Instructions
Read an arbitrary Kubernetes object by apiVersion/kind/name (e.g. apiVersion=apps/v1, kind=Deployment). Secret values are always redacted; credential-shaped env values and ConfigMap entries are masked.
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": {
"apiVersion": "<apiVersion>",
"kind": "<kind>",
"name": "<name>"
},
"name": "get_resource"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | e.g. Pod, Deployment, Ingress | |
| name | Yes | Resource name | |
| context | No | kube-config context to target (defaults to current-context) | |
| namespace | No | Namespace (omit for cluster-scoped resources) | |
| apiVersion | Yes | e.g. v1, apps/v1, networking.k8s.io/v1 |