add
Perform floating-point addition operations with ease using this tool. Input two numbers to quickly calculate their sum, enabling precise arithmetic computations for your needs.
Instructions
执行浮点数加法运算
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes |
Implementation Reference
- calculator.py:7-10 (handler)The handler function for the 'add' tool, decorated with @mcp.tool() to register it. It takes two floats and returns their sum.@mcp.tool() def add(a: float, b: float) -> float: """执行浮点数加法运算""" return a + b