Class: TalkToYourApp::Plugins::Health::Tools::ListChecks
- Defined in:
- lib/talk_to_your_app/plugins/health/tools/list_checks.rb
Overview
Lists the registered health checks with their descriptions.
Instance Method Summary collapse
Methods inherited from Tool
argument, arguments, connection, default_arguments, description, dispatch, input_schema_hash, invoke, name, normalize_response, to_mcp_definition, to_mcp_tool
Instance Method Details
#call(_args, _ctx) ⇒ Object
14 15 16 17 18 19 |
# File 'lib/talk_to_your_app/plugins/health/tools/list_checks.rb', line 14 def call(_args, _ctx) checks = TalkToYourApp::Health.checks.values.map do |check| { name: check.name, description: check.description } end json(checks: checks) end |