Skip to main content
Glama
kelseyee

Calculator MCP

by kelseyee

power

Perform power calculations by entering a base and exponent, enabling accurate results for numerical operations on the Calculator MCP server.

Instructions

计算幂运算

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
baseYes
exponentYes

Implementation Reference

  • The handler function for the 'power' tool, decorated with @mcp.tool() for registration, computes the power using base ** exponent with input types float and output float.
    @mcp.tool() def power(base: float, exponent: float) -> float: """计算幂运算""" return base ** exponent

Other Tools

Related 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