permutation_count
Calculates the number of permutations P(n,k) = n!/(n-k)! representing ordered arrangements of k elements selected from n elements. Returns the count as an integer. (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": "permutation_count"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | integer, required, number of elements to select (must be 0 ≤ k ≤ n) | |
| n | No | integer, required, total number of elements (must be non-negative) |