Health Summary Tool

The summarise_sandbox_health tool returns a compact diagnostic snapshot for a sandbox in a single call.

Context Reduction

Without this tool, diagnosing “why is X down?” requires 3+ MCP calls:

  1. inspect_sandbox — ~2 KB response
  2. get_sandbox_logs — up to 50 KB of stderr
  3. exec_in_sandbox "psql -c SELECT 1" — ~1 KB response

This tool replaces all three with a single call that returns ~500 bytes of structured diagnostic data.

Output Format

{
  "status": "running",
  "uptime_seconds": 3600,
  "last_errors": ["ERROR: connection refused"],
  "port_accessible": true,
  "resource_type": "postgres"
}