addNumbers
Add two integers together using this Python MCP Server tool. Input two numbers to calculate their sum through natural language interaction.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes |
Implementation Reference
- server.py:12-14 (handler)The addNumbers tool handler function, registered via @mcp.tool decorator. It takes two integers a and b, adds them, and returns the sum. The type hints serve as the input/output schema.@mcp.tool def addNumbers(a: int, b: int) -> int: return a + b