add
Add two integers to calculate their sum. This mathematical tool performs basic addition for numerical calculations.
Instructions
Add two numbers
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes |
Implementation Reference
- src/mcpserver/deployment.py:9-11 (handler)The 'add' tool handler function that takes two integers and returns their sum.def add(a: int, b: int) -> int: """Add two numbers""" return a + b
- src/mcpserver/deployment.py:8-8 (registration)Registers the 'add' tool using the @mcp.tool() decorator.@mcp.tool()