Skip to main content
Glama

add

Calculate the sum of two integer values. This tool performs basic addition operations by taking two numbers as input and returning their total.

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 handler function implementing the 'add' MCP tool. It takes two integers as input and returns their sum. Registered via @mcp.tool() decorator.
    @mcp.tool() def add(a: int, b: int) -> int: """ Add two numbers together. Args: a: First number b: Second number Returns: The sum of a and b """ logger.debug(f"Add tool called: {a} + {b}") return a + b

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/rdwj/mcp-test-mcp'

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