feat: add tool_arguments to instrumentation data
Include the tool arguments in instrumentation callback data when tools/call is invoked. This allows consumers to track which arguments were passed to each tool call for analytics and debugging purposes.
This commit is contained in:
parent
830913be5a
commit
7412197e52
1 changed files with 5 additions and 5 deletions
|
|
@ -322,7 +322,7 @@ module MCP
|
|||
end
|
||||
|
||||
arguments = request[:arguments] || {}
|
||||
add_instrumentation_data(tool_name: tool_name)
|
||||
add_instrumentation_data(tool_name: tool_name, tool_arguments: arguments)
|
||||
|
||||
if tool.input_schema&.missing_required_arguments?(arguments)
|
||||
add_instrumentation_data(error: :missing_required_arguments)
|
||||
|
|
|
|||
Loading…
Reference in a new issue