Skip to main content
Glama
Pankhur
by Pankhur

add

Calculate the sum of two integers to perform basic arithmetic operations in MCP server applications.

Instructions

Add two numbers

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aYes
bYes

Implementation Reference

  • The 'add' tool is implemented and registered here. The handler function adds two integer arguments and returns their sum. The @mcp.tool() decorator registers it with the MCP server.
    # Add an addition tool @mcp.tool() def add(a: int, b: int) -> int: """Add two numbers""" 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/Pankhur/public-mcp'

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