Skip to main content
Glama
Yoshua-Carrera

Python MCP Server

addNumbers

Add two integers together using this Python MCP Server tool. Input two numbers to calculate their sum through natural language interaction.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aYes
bYes

Implementation Reference

  • server.py:12-14 (handler)
    The addNumbers tool handler function, registered via @mcp.tool decorator. It takes two integers a and b, adds them, and returns the sum. The type hints serve as the input/output schema.
    @mcp.tool def addNumbers(a: int, b: int) -> int: 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/Yoshua-Carrera/python-mcp-server'

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