Get a resource
get_resourceRetrieve a single OpenShift resource by kind and name, including full spec and status, with secret values redacted. Requires namespace for namespaced kinds.
Instructions
Fetch a single resource by kind + name (+ namespace for namespaced kinds), with its full spec/status. Secret values are redacted.
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": {
"kind": "<kind>",
"name": "<name>"
},
"name": "get_resource"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | Resource kind — e.g. pod, deployment, deploymentconfig, service, route, configmap, secret, build, buildconfig, imagestream, statefulset, daemonset, job, cronjob, pvc, node, project. Singular or plural accepted. | |
| name | Yes | Resource name | |
| namespace | No | Namespace / project. Required for namespaced kinds; omit for cluster-scoped. |