factorial
Calculate the product of integers from 1 to n, with progress reporting for long runs. Use it for combinatorics, probability, and recursion tasks.
Instructions
Calculate factorial of n with progress reporting.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"n": "<n>"
},
"name": "factorial"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |