Account for missing arguments
This commit is contained in:
parent
a84b56c87a
commit
47215c98ce
1 changed files with 24 additions and 1 deletions
|
|
@ -233,7 +233,7 @@ module MCP
|
|||
raise RequestHandlerError.new("Tool not found #{tool_name}", request, error_type: :tool_not_found)
|
||||
end
|
||||
|
||||
arguments = request[:arguments]
|
||||
arguments = request[:arguments] || {}
|
||||
add_instrumentation_data(tool_name:)
|
||||
|
||||
if tool.input_schema&.missing_required_arguments?(arguments)
|
||||
|
|
|
|||
Loading…
Reference in a new issue