Class: Legion::MCP::Tools::DescribeRunner
- Inherits:
-
MCP::Tool
- Object
- MCP::Tool
- Legion::MCP::Tools::DescribeRunner
- Extended by:
- Logging::Helper
- Defined in:
- lib/legion/mcp/tools/describe_runner.rb
Class Method Summary collapse
Class Method Details
.call(runner: nil) ⇒ Object
22 23 24 25 26 27 28 29 30 |
# File 'lib/legion/mcp/tools/describe_runner.rb', line 22 def call(runner: nil) log.info('Starting legion.mcp.tools.describe_runner.call') return error_response('legion-data is not connected') unless data_connected? runner ? describe_single(runner) : describe_all rescue StandardError => e handle_exception(e, level: :warn, operation: 'legion.mcp.tools.describe_runner.call') error_response("Failed to describe runners: #{e.}") end |