List Resources (Generic)
list_resourcesFetch any Kubernetes resource by kind and API version, with optional namespace filtering.
Instructions
Generic resource lister — fetches any Kubernetes resource by kind and API version.
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": "list_resources"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | Resource kind (e.g. 'CronJob', 'HorizontalPodAutoscaler') | |
| namespace | No | Namespace (omit for cluster-scoped resources) | |
| api_version | No | API version (default: 'v1', e.g. 'batch/v1', 'apps/v1') | v1 |