multiply
Calculate the product of two numbers by multiplying them together using this mathematical operation tool.
Instructions
Multiply two numbers together.
Args:
a: The first number
b: The second number
Returns:
The product of a and b
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes |
Implementation Reference
- server.py:56-68 (handler)The multiply tool handler function, registered with the @mcp.tool() decorator. It multiplies two float inputs and returns their product. The docstring provides the schema-like description including args and return type.@mcp.tool() def multiply(a: float, b: float) -> float: """ Multiply two numbers together. Args: a: The first number b: The second number Returns: The product of a and b """ return a * b