Skip to content

Commit 47d969e

Browse files
committed
use heredoc to cleanup code example
1 parent d1a18ea commit 47d969e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -640,9 +640,11 @@ client = MCP::Client.new(transport: http_transport)
640640
# List available tools
641641
tools = client.tools
642642
tools.each do |tool|
643-
puts "Tool: #{tool.name}"
644-
puts "Description: #{tool.description}"
645-
puts "Input Schema: #{tool.input_schema}"
643+
puts <<~TOOL_INFORMATION
644+
Tool: #{tool.name}
645+
Description: #{tool.description}
646+
Input Schema: #{tool.input_schema}
647+
TOOL_INFORMATION
646648
end
647649

648650
# Call a specific tool

0 commit comments

Comments
 (0)