multiply
Perform floating-point multiplication operations with precision using Calculator MCP. Input two numbers to multiply and obtain the accurate result.
Instructions
执行浮点数乘法运算
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes |
Implementation Reference
- calculator.py:17-20 (handler)The handler function for the 'multiply' tool, decorated with @mcp.tool(). It takes two float arguments 'a' and 'b', multiplies them, and returns the result. The docstring provides the description in Chinese.@mcp.tool() def multiply(a: float, b: float) -> float: """执行浮点数乘法运算""" return a * b