subtract
Calculate the difference between two numbers by subtracting one from another. Use this tool to perform floating-point subtraction operations for mathematical calculations.
Instructions
执行浮点数减法运算
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes |
Implementation Reference
- calculator.py:12-15 (handler)The handler function for the 'subtract' MCP tool. It is registered via the @mcp.tool() decorator and implements subtraction of two float numbers.@mcp.tool() def subtract(a: float, b: float) -> float: """执行浮点数减法运算""" return a - b