Get any resource
get_resourceRetrieve any Kubernetes object by specifying API version, kind, and resource name, with optional namespace and kube-context for targeting the right cluster.
Instructions
Read an arbitrary Kubernetes object by apiVersion/kind/name (e.g. apiVersion=apps/v1, kind=Deployment).
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 |