multiply
Perform quick multiplication of two integers with this simple tool. Ideal for basic math operations within the MCP Boilerplate Server framework.
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 'multiply' tool handler function, decorated with @mcp.tool for registration. It multiplies two integers and returns the result. The function signature provides the input schema (a: int, b: int) and output type (int), with a docstring describing the tool.@mcp.tool def multiply(a: int, b: int) -> int: """Multiply two numbers together""" return a * b