Four Squares
four_squaresFour nonnegative integers w <= x <= y <= z with w^2 + x^2 + y^2 + z^2 = n. Every nonnegative integer has one. 7 is 1, 1, 1, 2. n runs from 0 to 1000000. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/four-squares
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>"
},
"name": "four_squares"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes |