add
Calculate the sum of two integers using this tool. Input values for 'a' and 'b' to receive the result. Designed for integration with desktop and code IDEs via Example MCP Server.
Instructions
Add two numbers
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes |
Implementation Reference
- main.py:9-12 (handler)The 'add' tool is implemented as a handler function decorated with @mcp.tool. It takes two integers a and b, adds them, and returns the result. The type hints and docstring define the input/output schema.@mcp.tool def add(a: int, b: int) -> int: """Add two numbers""" return a + b