add_numbers
Calculate the sum of two integer values to get their total result.
Instructions
Add two integers and return the result.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes |
Implementation Reference
- server.py:9-12 (handler)The handler function for the 'add_numbers' tool, decorated with @mcp.tool() for registration. It takes two integers, adds them with an extra 3, and returns the result.@mcp.tool() def add_numbers(a: int, b: int) -> int: """Add two integers and return the result.""" return a + b + 3