Permutation & Combination Calculator
PermutationCombinationCalculatorPermutation & Combination Calculator: Calculate permutations (P(n,r)) and combinations (C(n,r)) for any given values of n and r. (Cost: 1 credit)
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>",
"r": "<r>"
},
"name": "PermutationCombinationCalculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes | Total number of items | |
| r | Yes | Number of items to choose (must be <= n) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | Error message, null on success | |
| status | No | "ok" on success |