Class: GreetTool

Inherits:
MCP::Tool
  • Object
show all
Defined in:
lib/tools/greet_tool.rb

Overview

Define the greet tool

Class Method Summary collapse

Class Method Details

.call(message:) ⇒ Object



22
23
24
25
26
27
28
29
30
31
32
# File 'lib/tools/greet_tool.rb', line 22

def call(message:)
  logger.info "GreetTool called with message: #{message}"
  MCP::Tool::Response.new(
    [
      {
        type: 'text',
        text: message
      }
    ]
  )
end