Skip to main content
Glama
AdarshChaudhary03

MCP Server Deployment Demo

add

Add two integers together using this simple arithmetic tool from the MCP Server Deployment Demo. Perform basic addition calculations for development testing and learning purposes.

Instructions

Adds two integers.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xYes
yYes

Implementation Reference

  • The handler function for the 'add' tool, which adds two integer inputs and returns their sum.
    def add(x: int, y: int) -> int: """ Adds two integers. """ return x + y
  • The @mcp.tool() decorator registers the 'add' function as a tool on the FastMCP server instance.
    @mcp.tool()

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/AdarshChaudhary03/mcp-server-deployment'

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