Percentage Calculator: API and MCP
Percentage Calculator over REST and MCP: input fields, limits, outputs, one example request and its real answer. Free, no sign-up.
GET /api/v1/tools/math.percentage/mcp/math
- Id
math.percentage- Version
- 1.0.0
- Access
- Free
- Tool page
- Percentage Calculator
- Schema
GET /api/v1/tools/math.percentage
Input
| Field | Type | Constraints | Default | Description |
|---|---|---|---|---|
mode | string | percentOf | whatPercent | discount | increase | percentOf | What to calculate |
part | number | ≥ -1,000,000,000,000,000, ≤ 1,000,000,000,000,000 | Part (A) | |
amount (required) | number | ≥ -1,000,000,000,000,000, ≤ 1,000,000,000,000,000 | Number (B) | |
percent | number | ≥ -10,000, ≤ 10,000 | Percentage (%) |
Output
| Field | Type | Description |
|---|---|---|
result | number | Result |
saving | number | Saving |
increased | number | After increase |
decreased | number | After discount |
Example request
curl -X POST https://hesaplayici.com/api/v1/tools/math.percentage/execute \
-H 'Content-Type: application/json' \
-d '{"input":{"mode":"percentOf","amount":1000,"percent":20},"locale":"en"}'Example answer
{
"output": {
"result": 200,
"increased": 1200,
"decreased": 800
},
"steps": [
{
"id": "result",
"formula": "part = amount × percent / 100",
"substitution": "part = 1,000 × 20 / 100",
"value": 200
}
],
"notes": [],
"meta": {
"toolVersion": "1.0.0",
"locale": "en"
},
"citation": {
"url": "https://hesaplayici.com/en/math/percentage-calculator",
"title": "Percentage Calculator"
}
}