Perm Rank
perm_rankLexicographic rank of a permutation, or the permutation at a rank. [0, 1, 2] is rank 0 and [2, 0, 1] is rank 4. Give the permutation, or n and a rank, not both. n is at most 10. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/perm-rank
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": "perm_rank"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | ||
| perm | No | ||
| rank | No |