The name of the tool
A description of what the tool does
OptionalschemaZod schema for validating tool arguments (optional)
The function to execute (can be sync or async)
OptionalisWhether the tool is a long running operation
OptionalshouldWhether the tool execution should be retried on failure
OptionalmaxMaximum retry attempts
Configuration for creating a tool