Skip to main content
Glama
shazaaly

MCP Boilerplate Server

by shazaaly

add

Add two integers together to calculate their sum using this mathematical tool from the MCP Boilerplate Server.

Instructions

Add two numbers together

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aYes
bYes

Implementation Reference

  • The handler function for the 'add' tool. It is decorated with @mcp.tool, which registers it in the MCP server. Takes two integers a and b, adds them, and returns the result. Input schema inferred from type annotations (a: int, b: int), output: int, docstring provides description.
    @mcp.tool def add(a: int, b: int) -> int: """Add two numbers together""" return a + b

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/shazaaly/mcp-boilerplate'

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