Skip to main content
Glama

subtract

Perform subtraction of two integer values on the Example MCP Server. Enter numerical inputs 'A' and 'B' to calculate the difference.

Instructions

Subtract two numbers

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aYes
bYes

Implementation Reference

  • main.py:15-17 (handler)
    The handler function for the 'subtract' tool, which subtracts two integers and returns the result.
    def subtract(a: int, b: int) -> int: """Subtract two numbers""" return a - b
  • main.py:14-14 (registration)
    Registration of the 'subtract' tool using the @mcp.tool decorator.
    @mcp.tool

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/Joseph19820124/joseph_mcp_server'

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