power
Calculate mathematical power operations by raising any base number to a specified exponent for quick exponentiation results.
Instructions
Raise a number to a power.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | Yes | ||
| exponent | Yes |
Implementation Reference
- server.py:95-98 (handler)The handler function for the 'power' tool, registered via @mcp.tool() decorator. It raises the base to the power of the exponent using Python's ** operator.@mcp.tool() def power(base: float, exponent: float) -> float: """Raise a number to a power.""" return base ** exponent