Combination Calculator
combinationsCompute exact combinations nCr or permutations nPr for bounded integer inputs.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"n": 5,
"r": 2,
"mode": "combinations"
},
"name": "combinations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes | Total items n. | |
| r | Yes | Selected items r. | |
| mode | Yes | Counting operation. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||