add
Sum two integers by entering values for 'a' and 'b'. This tool simplifies basic addition for users on the MCP Boilerplate Server.
Instructions
Add two numbers together
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes |
Implementation Reference
- mcp_server_boilerplate/server.py:12-15 (handler)The handler function for the 'add' tool, decorated with @mcp.tool for registration, which adds two integers and returns their sum. The function signature defines the input schema (a: int, b: int) and output (int).@mcp.tool def add(a: int, b: int) -> int: """Add two numbers together""" return a + b