add
Calculate the sum of two integer values to perform basic arithmetic operations within the FastMCP Documentation & Web Scraping Server.
Instructions
Add two numbers
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes |
Implementation Reference
- main.py:30-33 (handler)The 'add' tool handler: decorated with @mcp.tool to register it, defines input schema via type annotations (a: int, b: int) -> int, and implements addition logic returning a + b.@mcp.tool def add(a: int, b: int) -> int: """Add two numbers""" return a + b