Skip to main content
Glama

add

Add two integer values to calculate their sum. This tool performs basic arithmetic addition for numerical inputs.

Instructions

Add two numbers

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aYes
bYes

Implementation Reference

  • main.py:10-12 (handler)
    The 'add' tool handler function that adds two integers and returns the result.
    def add(a: int, b: int) -> int: """Add two numbers""" return a + b

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

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