Analyze a configuration file
analyze_configReview a configuration file the way a DevOps engineer would. Detects the technology (Docker Compose, Kubernetes manifests, Helm charts, GitHub Actions, GitLab CI, OpenAPI/Swagger and Ansible; otherwise generic YAML/JSON) and returns JSON with: the detected technology and alternatives, diagnostics validated against the official JSON Schema plus technology rules (line, column, severity, code, plain-English message, and a mechanical fix when one exists), security and reliability risks with their remediation (privileged containers, :latest images, plaintext secrets, missing limits or healthchecks, unpinned actions…), and a one-line summary. Use it before committing or reviewing a config, or when the user asks "what is wrong with this file" or "what are the risks". Prefer it over validate_yaml for any of these technologies.
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": {
"content": "<content>"
},
"name": "analyze_config"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tech | No | Force the technology instead of auto-detecting it | |
| content | Yes | The full text of the configuration file (YAML or JSON) | |
| filename | No | File name or path, e.g. "docker-compose.prod.yml" or ".github/workflows/ci.yml". Improves detection; pass it whenever you know it. |