Skip to main content
Glama
rkram90

My UV MCP Server

by rkram90

add_numbers

Add two integers to calculate their sum. This tool performs basic arithmetic addition for mathematical operations.

Instructions

Add two integers and return the result.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aYes
bYes

Implementation Reference

  • server.py:9-12 (handler)
    The implementation of the 'add_numbers' tool. The @mcp.tool() decorator registers it with the MCP server, the function signature defines the input/output schema (two int inputs, int output), and the body executes the logic: returns a + b + 3.
    @mcp.tool() def add_numbers(a: int, b: int) -> int: """Add two integers and return the result.""" return a + b + 3
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/rkram90/mcp-demo'

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