diagnose_site
Diagnose a misbehaving domain: checks nginx config validity, service status, DNS, upstream connectivity, certificate expiry, and error logs. Returns per-check status, overall health, and next steps.
Instructions
One-call health report for a domain: whether its nginx config exists and is enabled, whether nginx is running and passes nginx -t, whether the domain resolves, whether the upstream accepts TCP connections, whether a certificate covers it (and how long is left), and recent nginx error-log lines mentioning the site or its upstream. Read-only. Returns per-check status (ok/warn/fail/skipped), an overall healthy flag, and next_steps naming the tools that would fix each problem. Start here when a site is misbehaving instead of calling the individual check_* tools one by one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Domain to diagnose, e.g. mysite.julcap.net |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| checks | Yes | ||
| domain | Yes | ||
| healthy | Yes | True when no check failed; warnings and skipped checks don't count | |
| summary | Yes | ||
| next_steps | Yes | Suggested tools/actions for each warning or failure; empty when all is well |