subtract
Calculate the difference between two numbers by subtracting the second number from the first number to get the result.
Instructions
Subtract the second number from the first number.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes |
Implementation Reference
- server.py:78-81 (handler)The handler function for the 'subtract' MCP tool. It takes two float arguments, subtracts the second from the first, and returns the result. The @mcp.tool() decorator registers it as a tool.@mcp.tool() def subtract(a: float, b: float) -> float: """Subtract the second number from the first number.""" return a - b