Skip to main content
Glama
kelseyee

Calculator MCP

by kelseyee

subtract

Calculate the difference between two numbers by subtracting one from another. Use this tool to perform floating-point subtraction operations for mathematical calculations.

Instructions

执行浮点数减法运算

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aYes
bYes

Implementation Reference

  • The handler function for the 'subtract' MCP tool. It is registered via the @mcp.tool() decorator and implements subtraction of two float numbers.
    @mcp.tool() def subtract(a: float, b: float) -> float: """执行浮点数减法运算""" return a - b
Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kelseyee/mcp_calculator'

If you have feedback or need assistance with the MCP directory API, please join our Discord server