Skip to main content
Glama
jcdumlao14

FastMCP Documentation & Web Scraping Server

by jcdumlao14

add

Calculate the sum of two integer values to perform basic arithmetic operations within the FastMCP Documentation & Web Scraping Server.

Instructions

Add two numbers

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aYes
bYes

Implementation Reference

  • main.py:30-33 (handler)
    The 'add' tool handler: decorated with @mcp.tool to register it, defines input schema via type annotations (a: int, b: int) -> int, and implements addition logic returning a + b.
    @mcp.tool def add(a: int, b: int) -> int: """Add two numbers""" 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/jcdumlao14/03-mcp'

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