absolute
Calculate the absolute value of any given number. Returns the non-negative magnitude, converting negative inputs to positive values for precise arithmetic results.
Instructions
Calculate the absolute value of a given number.
Args:
data (SingleNumberOperation): An object containing the input number a.
Returns:
Dict[str, Any]: A dictionary containing the operation result or an error message.
Notes:
- Returns the absolute (non-negative) value of the input.
- Logs the operation and result.
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": {
"data": "<data>"
},
"name": "absolute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||