Skip to main content
Glama
kelseyee

Calculator MCP

by kelseyee

power

Calculate power operations by raising a base number to an exponent. Use this tool to perform exponentiation for mathematical calculations.

Instructions

计算幂运算

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
baseYes
exponentYes

Implementation Reference

  • The handler function for the 'power' tool, decorated with @mcp.tool(). It computes base raised to the power of exponent using the ** operator.
    @mcp.tool() def power(base: float, exponent: float) -> float: """计算幂运算""" return base ** exponent
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