Polygonal
polygonalThe nth s-gonal number, n*((s-2)*n - (s-4))/2. Triangular 4 is 10, square 5 is 25, pentagonal 5 is 35, and hexagonal 5 is 45. s runs from 3 to 20 and n from 0 to 1000000. The 0th number is 0 and the 1st is 1. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/polygonal
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": {
"s": "<s>",
"n": "<n>"
},
"name": "polygonal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes | ||
| s | Yes |