Skip to main content
Glama
dynstat

MCP Server Demo

by dynstat

add

Perform addition of two integers using the MCP Server Demo tool. Input values for a and b, and get the sum instantly, simplifying basic calculations for AI-assisted workflows.

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. It takes two integers a and b, adds them, and returns the sum. The type hints serve as input schema, and the docstring provides description.
    @mcp.tool() def add(a: int, b: int) -> int: """Add two numbers""" return a + b

Other Tools

Related Tools

  • @wudongjie/example-mcp-server
  • @mikefey/mcp-server
  • @YuheiNakasaka/arithmetic-mcp-server
  • @kylekanouse/Test-MCP---DEMO-MCP-Dev-1
  • @wrtnlabs/calculator-mcp
  • @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/dynstat/mcp-demo'

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