Skip to main content
Glama
dynstat

MCP Server Demo

by dynstat

add

Calculate the sum of two integer values. Enter two numbers to get their total result.

Instructions

Add two numbers

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aYes
bYes

Implementation Reference

  • The handler function for the 'add' tool, decorated with @mcp.tool() for registration in the MCP server. It takes two integers a and b, adds them, and returns the result. The type hints serve as the input schema.
    @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/dynstat/mcp-demo'

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