Class: SchwabMCP::Tools::HelpTool
- Inherits:
-
MCP::Tool
- Object
- MCP::Tool
- SchwabMCP::Tools::HelpTool
- Extended by:
- Loggable
- Defined in:
- lib/schwab_mcp/tools/help_tool.rb
Class Method Summary collapse
Methods included from Loggable
log_debug, log_error, log_fatal, log_info, log_warn, logger
Class Method Details
.call(topic: nil, server_context:) ⇒ Object
28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/schwab_mcp/tools/help_tool.rb', line 28 def self.call(topic: nil, server_context:) log_info("Help requested for topic: #{topic || 'general'}") help_content = if topic get_topic_help(topic) else get_general_help end MCP::Tool::Response.new([{ type: "text", text: help_content }]) end |