factorial
Calculates the factorial of a non-negative integer n, which is the product of all positive integers less than or equal to n. Returns n! = n × (n-1) × ... × 1. (cost: 1 credit)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "factorial"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| number | No | integer, required, non-negative integer to calculate factorial of |