multiply
Calculate the product of two numbers to perform multiplication operations. Use this tool to multiply numeric values in arithmetic calculations.
Instructions
Multiply two numbers.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes |
Implementation Reference
- server.py:26-29 (handler)The multiply tool handler function with @mcp.tool() decorator. Takes two float parameters and returns their product. The decorator registers it as an MCP tool, and type hints define the input/output schema.
@mcp.tool() def multiply(a: float, b: float) -> float: """Multiply two numbers.""" return a * b