@@ -17,7 +17,7 @@ class Client
1717 # @note
1818 # The transport does not need to be a specific class, but must implement:
1919 # - #tools
20- # - #call_tool(tool:, input :)
20+ # - #call_tool(tool:, arguments :)
2121 def initialize ( transport :)
2222 @transport = transport
2323 end
@@ -55,22 +55,22 @@ def tools
5555 # Calls a tool via the transport layer.
5656 #
5757 # @param tool [MCP::Client::Tool] The tool to be called.
58- # @param input [Object, nil] The input to pass to the tool.
58+ # @param arguments [Object, nil] The arguments to pass to the tool.
5959 # @return [Object] The result of the tool call, as returned by the transport.
6060 #
6161 # @example
6262 # tool = client.tools.first
63- # result = client.call_tool(tool: tool, input : { foo: "bar" })
63+ # result = client.call_tool(tool: tool, arguments : { foo: "bar" })
6464 #
6565 # @note
66- # The exact requirements for `input ` are determined by the transport layer in use.
66+ # The exact requirements for `arguments ` are determined by the transport layer in use.
6767 # Consult the documentation for your transport (e.g., MCP::Client::HTTP) for details.
68- def call_tool ( tool :, input : nil )
68+ def call_tool ( tool :, arguments : nil )
6969 response = transport . send_request ( request : {
7070 jsonrpc : JSON_RPC_VERSION ,
7171 id : request_id ,
7272 method : "tools/call" ,
73- params : { name : tool . name , arguments : input } ,
73+ params : { name : tool . name , arguments : arguments } ,
7474 } )
7575
7676 response . dig ( "result" , "content" )
0 commit comments