clamp
Restrict a numeric value to stay within specified minimum and maximum bounds, preventing it from exceeding defined limits.
Instructions
Clamp a value between a minimum and maximum bound. Ensures the value stays within specified limits. (Domain: arithmetic, Category: comparison)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"value": "<value>",
"min_val": "<min_val>",
"max_val": "<max_val>"
},
"name": "clamp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| min_val | Yes | ||
| max_val | Yes |