add
Calculate the sum of two integer values. This tool performs basic addition operations by taking two numbers as input and returning their total.
Instructions
Add two numbers together.
Args: a: First number b: Second number
Returns: The sum of a and b
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes |
Implementation Reference
- The handler function implementing the 'add' MCP tool. It takes two integers as input and returns their sum. Registered via @mcp.tool() decorator.@mcp.tool() def add(a: int, b: int) -> int: """ Add two numbers together. Args: a: First number b: Second number Returns: The sum of a and b """ logger.debug(f"Add tool called: {a} + {b}") return a + b