Skip to main content
Glama
kelseyee

Calculator MCP

by kelseyee

factorial

Calculate the factorial of any integer using Calculator MCP. Input a number to compute its factorial efficiently, ideal for mathematical and programming applications.

Instructions

计算整数阶乘

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nYes

Implementation Reference

  • The 'factorial' tool handler, registered via @mcp.tool() decorator. Takes an integer n and returns its factorial using math.factorial. Schema inferred from type hints (n: int) -> int and docstring.
    @mcp.tool() def factorial(n: int) -> int: """计算整数阶乘""" return math.factorial(n)

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