multiply
Multiply two numbers to calculate their product. Use this tool for basic arithmetic multiplication operations in calculations.
Instructions
执行浮点数乘法运算
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes |
Implementation Reference
- calculator.py:17-20 (handler)The multiply tool implementation: a handler function decorated with @mcp.tool() that multiplies two float inputs and returns the result. The type hints and docstring define the input/output schema.@mcp.tool() def multiply(a: float, b: float) -> float: """执行浮点数乘法运算""" return a * b