add
Calculate the sum of two integer values. Enter two numbers to get their total result.
Instructions
Add two numbers
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes |
Implementation Reference
- server.py:108-111 (handler)The handler function for the 'add' tool, decorated with @mcp.tool() for registration in the MCP server. It takes two integers a and b, adds them, and returns the result. The type hints serve as the input schema.@mcp.tool() def add(a: int, b: int) -> int: """Add two numbers""" return a + b