Class: Pgbus::MCP::Tools::HealthTool
- Defined in:
- lib/pgbus/mcp/tools/health_tool.rb
Overview
Top-level health verdict: OK / DEGRADED / STALLED, with the reasons that drove it. Delegates the actual analysis to HealthAnalyzer, which reads the same DataSource surface the dashboard uses. This is the single tool that catches the silent-worker-wedge class of incident.
Class Method Summary collapse
Methods inherited from BaseTool
annotations_value, data_source_from, error_response, json_response, payloads_allowed?
Class Method Details
.call(server_context: nil) ⇒ Object
26 27 28 29 |
# File 'lib/pgbus/mcp/tools/health_tool.rb', line 26 def self.call(server_context: nil) data_source = data_source_from(server_context) json_response(HealthAnalyzer.new(data_source).verdict) end |