hesaplayıcı
Menu

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

FieldTypeConstraintsDefaultDescription
modestringpercentOf | whatPercent | discount | increasepercentOfWhat to calculate
partnumber≥ -1,000,000,000,000,000, ≤ 1,000,000,000,000,000Part (A)
amount (required)number≥ -1,000,000,000,000,000, ≤ 1,000,000,000,000,000Number (B)
percentnumber≥ -10,000, ≤ 10,000Percentage (%)

Output

FieldTypeDescription
resultnumberResult
savingnumberSaving
increasednumberAfter increase
decreasednumberAfter 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"
  }
}