multiply
Multiply two numbers together to calculate their product. Use this tool for basic arithmetic multiplication operations.
Instructions
Multiply two numbers together.
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
- server.py:83-86 (handler)The handler function for the 'multiply' tool, decorated with @mcp.tool() for registration. It takes two floats, multiplies them, and returns the result.
@mcp.tool() def multiply(a: float, b: float) -> float: """Multiply two numbers together.""" return a * b