percentage
Percentage calculator, percent change, discount and tax. Percentages, exactly: what is P% of X (mode=of), X is what % of Y (mode=is_what), % change from X to Y (mode=change), add or remove P% to X (mode=add, remove, e.g. tax or discount). Price: $0.001 per call (x402, USDC on Base).
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": {
"mode": "<mode>",
"x": "<x>"
},
"name": "percentage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| p | No | ||
| x | Yes | ||
| y | No | ||
| mode | Yes |