factorial
Calculate factorial values for any integer using the formula n! = n × (n-1) × ... × 2 × 1. This tool computes mathematical factorials for arithmetic and sequence calculations.
Instructions
Calculate factorial n! = n × (n-1) × ... × 2 × 1. (Domain: arithmetic, Category: basic_sequences)
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 |