Skip to main content
Glama

add

Calculate the sum of two numbers to perform basic mathematical addition operations.

Instructions

Add two numbers together.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aYes
bYes

Implementation Reference

  • server.py:73-76 (handler)
    The handler function for the 'add' tool, which adds two floating-point numbers. Registered via @mcp.tool() decorator.
    @mcp.tool() def add(a: float, b: float) -> float: """Add two numbers together.""" 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/vipankumar87/MCP-Example'

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