add
Calculate the sum of two given numbers and return the result. Solves simple arithmetic addition quickly.
Instructions
Perform addition of two numbers provided in the data object.
Args:
data (TwoNumberOperation): An object containing two numbers a and b
to be added.
Returns:
Dict[str, Any]: A dictionary containing the operation name ("add") and
the result of the addition if successful, or an error
message if an exception occurs.
Logs:
Logs the operation and result in the format:
"ADD | {data.a} + {data.b} = {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": "add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||