Skip to main content
Glama
kelseyee

Calculator MCP

by kelseyee

sqrt

Calculate the square root of any number to solve mathematical problems involving root extraction and numerical analysis.

Instructions

计算平方根

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
numberYes

Implementation Reference

  • The handler function implementing the 'sqrt' tool. It takes a float 'number' and returns its square root using math.sqrt.
    def sqrt(number: float) -> float: """计算平方根""" return math.sqrt(number)
  • calculator.py:38-38 (registration)
    The @mcp.tool() decorator registers the sqrt function as a tool in the FastMCP server.
    @mcp.tool()
Install Server

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/kelseyee/mcp_calculator'

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