Skip to main content
Glama

add

Calculate the sum of two integers using this tool. Input values for 'a' and 'b' to receive the result. Designed for integration with desktop and code IDEs via Example MCP Server.

Instructions

Add two numbers

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aYes
bYes

Implementation Reference

  • main.py:9-12 (handler)
    The 'add' tool is implemented as a handler function decorated with @mcp.tool. It takes two integers a and b, adds them, and returns the result. The type hints and docstring define the input/output schema.
    @mcp.tool def add(a: int, b: int) -> int: """Add two numbers""" return a + b

Other Tools

Related Tools

  • @Mtar786/mcpServer
  • @shazaaly/mcp-boilerplate
  • @ranjaka/mcp-server-demo
  • @wudongjie/example-mcp-server
  • @dynstat/mcp-demo
  • @joeguo911/mcp-demo

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/Joseph19820124/joseph_mcp_server'

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