Skip to main content
Glama
abckiran
by abckiran

add

Perform addition of two integers using a mathematical tool for quick calculations in the MCP Server Deepdive environment.

Instructions

Add two numbers

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aYes
bYes

Implementation Reference

  • Registration of the 'add' tool using the @mcp.tool() decorator on the FastMCP instance.
    @mcp.tool()
  • The handler function implementing the 'add' tool logic, adding two integers and returning the sum. Includes type annotations for schema and docstring.
    def add(a: int, b: int) -> int: """Add two numbers""" return a + b

Other Tools

Related Tools

  • @KrishnaPapana/mcpserverexample
  • @wrtnlabs/calculator-mcp
  • @kylekanouse/Test-MCP---DEMO-MCP-Dev-1
  • @dynstat/mcp-demo
  • @YuheiNakasaka/arithmetic-mcp-server
  • @githubpradeep/calc-mcp72

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/abckiran/mcpServerexample'

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