multiply
Multiply two integers to calculate their product. This tool performs basic multiplication operations for mathematical calculations.
Instructions
Multiply two numbers together
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes |
Implementation Reference
- mcp_server_boilerplate/server.py:17-20 (handler)The handler function for the 'multiply' tool. It takes two integers 'a' and 'b', multiplies them, and returns the result. Registered via the @mcp.tool decorator, which also defines the input schema based on type hints.@mcp.tool def multiply(a: int, b: int) -> int: """Multiply two numbers together""" return a * b