add
Add two integer values to calculate their sum. This tool performs basic arithmetic addition for numerical inputs.
Instructions
Add two numbers
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": {
"a": "<a>",
"b": "<b>"
},
"name": "add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes |
Implementation Reference
- main.py:10-12 (handler)The 'add' tool handler function that adds two integers and returns the result.
def add(a: int, b: int) -> int: """Add two numbers""" return a + b