multiply
Calculate the product of two integers to perform multiplication operations in mathematical workflows.
Instructions
Multiply two numbers
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"a": "<a>",
"b": "<b>"
},
"name": "multiply"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes |
Implementation Reference
- main.py:19-22 (handler)The handler function for the 'multiply' tool, decorated with @mcp.tool for registration, implements multiplication of two integers with type hints defining the input/output schema.
@mcp.tool def multiply(a: int, b: int) -> int: """Multiply two numbers""" return a * b