Skip to main content
Glama
kelseyee

Calculator MCP

by kelseyee

subtract

Perform floating-point subtraction by inputting two numbers to calculate the difference. Ideal for precise numerical calculations in mathematical operations.

Instructions

执行浮点数减法运算

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aYes
bYes

Implementation Reference

  • The handler function for the 'subtract' tool, decorated with @mcp.tool() to register it in the MCP server. It takes two float arguments and returns their difference.
    @mcp.tool() def subtract(a: float, b: float) -> float: """执行浮点数减法运算""" return a - b

Other Tools

Related 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