Validate Kubernetes manifests
validate_manifestsCheck Kubernetes manifests for hidden errors that break deployments: selector mismatches, missing config references, invalid ports, and more. Get valid=false with clear errors before applying.
Instructions
Check manifests for the mistakes that survive 'kubectl apply' but break the application: selectors that match no pods, a Service targetPort no container listens on, probes aimed at the wrong port, references to a ConfigMap, Secret or PVC that does not exist, undefined volume mounts, duplicate resources, wrong apiVersion, invalid names and out-of-range nodePorts. ALWAYS run this before deploying. Returns valid=false with human-readable errors when the manifests would break.
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": {
"path": "<path>"
},
"name": "validate_manifests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| valid | Yes | ||
| issues | No | ||
| summary | No | ||
| resources | No | ||
| error_count | No | ||
| files_checked | No | ||
| warning_count | No |