add
Perform addition of two integers using a mathematical tool for quick calculations in the MCP Server Deepdive environment.
Instructions
Add two numbers
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes |
Implementation Reference
- src/mcpserver/deployment.py:8-8 (registration)Registration of the 'add' tool using the @mcp.tool() decorator on the FastMCP instance.@mcp.tool()
- src/mcpserver/deployment.py:9-11 (handler)The handler function implementing the 'add' tool logic, adding two integers and returning the sum. Includes type annotations for schema and docstring.def add(a: int, b: int) -> int: """Add two numbers""" return a + b