add
Add two integers together to calculate their sum. This mathematical tool performs basic addition operations for numerical calculations.
Instructions
Adds two numbers together.
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:15-18 (handler)The 'add' tool implementation using the @mcp.tool() decorator.
@mcp.tool() def add(a: int, b: int) -> int: """Adds two numbers together.""" return a + b