We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/kcbabo/everything-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
sum.py•582 B
"""Example echo tool for my-mcp-server2 MCP server.
This is an example tool showing the basic structure for FastMCP tools.
Each tool file should contain a function decorated with @mcp.tool().
"""
from core.server import mcp
from core.utils import get_tool_config
@mcp.tool()
def sum(a: float | int, b: float | int) -> float | int:
"""Add two numbers together. Use this tool when you need to sum or add two numbers.
Args:
a: The first number to add
b: The second number to add
Returns:
The sum of the two numbers
"""
return a + b