parameter
Add a function parameter to the tool definition.
Parameters
name
Parameter name.
param_type
JSON schema type for the parameter.
"string"— text value"integer"— whole number value"number"— numeric value including decimals"boolean"— true or false value"array"— list of values"object"— nested key-value structure
description
Description of the parameter shown to the AI.
required
Whether this parameter is required.
enum
Optional list of allowed values for this parameter.
Returns
DataMap — Self for method chaining.