Skip to main content
Glama
parameshwaran1

Deployable MCP Server

add

Perform basic addition of two numbers. Input two numeric values, and the tool calculates their sum for quick computation tasks.

Instructions

Add two numbers together. Args: a: First number b: Second number Returns: The sum of a and b

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aYes
bYes

Implementation Reference

  • The 'add' tool handler, registered via @mcp.tool() decorator. It adds two integers i and j and returns their sum. Includes type hints and docstring serving as schema.
    @mcp.tool() def add(i:int , j:int) -> int: """ Adds two integers and returns the result. Args: i (int): The first integer to add. j (int): The second integer to add. Returns: int: The sum of i and j. """ return i+ j

Other Tools

Related Tools

  • @GonTwVn/GonMCPtool
  • @riteshbangal/BuildMcpServer
  • @liaotaodcx8/toolkittest
  • @bahfahh/mcptest
  • @kelseyee/mcp_calculator
  • @joeguo911/mcp-demo

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/parameshwaran1/mcpserverexample'

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