Math Tools: API and MCP
Math category REST API and MCP reference for 10 tools: input fields, limits, outputs, example requests and real answers. Free, no key.
GET /api/v1/tools?category=math/mcp/math/api/v1/openapi.json
Area, Perimeter and Volume Calculator
- Id
math.geometry- Version
- 1.0.0
- Access
- Free
- Tool page
- Area, Perimeter and Volume Calculator
- Schema
GET /api/v1/tools/math.geometry
Input
| Field | Type | Constraints | Default | Description |
|---|---|---|---|---|
mode | string | square | rectangle | triangle | circle | trapezoid | parallelogram | ellipse | cube | box | cylinder | cone | sphere | rightTriangle | square | Shape |
unit | string | m | cm | mm | km | in | ft | yd | m | Length unit |
length | number | ≥ 0.000000001, ≤ 1,000,000,000 | Length / side (a) | |
width | number | ≥ 0.000000001, ≤ 1,000,000,000 | Width (b) | |
height | number | ≥ 0.000000001, ≤ 1,000,000,000 | Perpendicular height (h) · Enter the distance perpendicular to the base, not a sloping edge. | |
radius | number | ≥ 0.000000001, ≤ 1,000,000,000 | Radius (r) · Half the diameter. | |
sideA | number | ≥ 0.000000001, ≤ 1,000,000,000 | First side (a) | |
sideB | number | ≥ 0.000000001, ≤ 1,000,000,000 | Second side (b) | |
sideC | number | ≥ 0.000000001, ≤ 1,000,000,000 | Third side (c) | |
base | number | ≥ 0.000000001, ≤ 1,000,000,000 | Lower base (b) | |
topBase | number | ≥ 0.000000001, ≤ 1,000,000,000 | Upper base (t) | |
side | number | ≥ 0.000000001, ≤ 1,000,000,000 | Sloping side (s) | |
offset | number | ≥ -1,000,000,000, ≤ 1,000,000,000 | 0 | Upper-base horizontal offset (d) · From lower-left to upper-left vertex: positive right, negative left. 0 aligns the left ends. Enter (lower base − upper base) / 2 to center it. |
semiAxisA | number | ≥ 0.000000001, ≤ 1,000,000,000 | First semi-axis (a) | |
semiAxisB | number | ≥ 0.000000001, ≤ 1,000,000,000 | Second semi-axis (b) | |
legA | number | ≥ 0.000000001, ≤ 1,000,000,000 | First perpendicular leg (a) | |
legB | number | ≥ 0.000000001, ≤ 1,000,000,000 | Second perpendicular leg (b) |
Output
| Field | Type | Description |
|---|---|---|
area | number | Area |
volume | number | Volume |
perimeter | number | Perimeter |
surfaceArea | number | Total surface area |
hypotenuse | number | Hypotenuse |
leftSide | number | Left sloping side |
rightSide | number | Right sloping side |
slantHeight | number | Slant height |
approximatePerimeter | boolean | Ellipse perimeter uses Ramanujan’s second approximation; it is not exact. |
Example request
curl -X POST https://hesaplayici.com/api/v1/tools/math.geometry/execute \
-H 'Content-Type: application/json' \
-d '{"input":{"mode":"square","unit":"m","length":12,"offset":0},"locale":"en"}'Example answer
{
"output": {
"area": 144,
"perimeter": 48
},
"steps": [
{
"id": "area",
"formula": "A = a²",
"substitution": "12²",
"value": 144,
"unit": "m²"
},
{
"id": "perimeter",
"formula": "P = 4a",
"substitution": "4 × 12",
"value": 48,
"unit": "m"
}
],
"notes": [],
"meta": {
"toolVersion": "1.0.0",
"locale": "en"
},
"citation": {
"url": "https://hesaplayici.com/en/math/area-calculator",
"title": "Area, Perimeter and Volume Calculator"
}
}Combinations and Permutations Calculator
- Id
math.combinations- Version
- 1.0.0
- Access
- Free
- Tool page
- Combinations and Permutations Calculator
- Schema
GET /api/v1/tools/math.combinations
Input
| Field | Type | Constraints | Default | Description |
|---|---|---|---|---|
mode | string | combination | permutation | combinationRepetition | permutationRepetition | combination | Type of count |
n (required) | integer | ≥ 1, ≤ 1,000 | Number of items (n) · How many different items there are to choose from, 1 to 1,000. | |
r (required) | integer | ≥ 0, ≤ 1,000 | Number chosen (r) · How many items are chosen or arranged, 0 to 1,000. |
Output
| Field | Type | Description |
|---|---|---|
result | string | Number of ways |
digits | number | Number of digits |
Example request
curl -X POST https://hesaplayici.com/api/v1/tools/math.combinations/execute \
-H 'Content-Type: application/json' \
-d '{"input":{"mode":"combination","n":10,"r":3},"locale":"en"}'Example answer
{
"output": {
"result": "120",
"digits": 3
},
"steps": [
{
"id": "factorial.10",
"formula": "n! = 1 × 2 × … × n",
"substitution": "10! = 1 × 2 × … × 10",
"value": 3628800
},
{
"id": "factorial.3",
"formula": "r! = 1 × 2 × … × r",
"substitution": "3! = 1 × 2 × 3",
"value": 6
},
{
"id": "factorial.7",
"formula": "(n − r)! = 1 × 2 × … × (n − r)",
"substitution": "7! = 1 × 2 × … × 7",
"value": 5040
},
{
"id": "result",
"formula": "C(n, r) = n! / (r! × (n − r)!)",
"substitution": "C(10, 3) = 3,628,800 / (6 × 5,040)",
"value": 120
}
],
"notes": [],
"meta": {
"toolVersion": "1.0.0",
"locale": "en"
},
"citation": {
"url": "https://hesaplayici.com/en/math/combinations-calculator",
"title": "Combinations and Permutations Calculator"
}
}Fraction Simplifier
- Id
math.fraction- Version
- 1.0.0
- Access
- Free
- Tool page
- Fraction Simplifier
- Schema
GET /api/v1/tools/math.fraction
Input
| Field | Type | Constraints | Default | Description |
|---|---|---|---|---|
numerator (required) | integer | ≥ -1,000,000,000,000, ≤ 1,000,000,000,000 | Numerator | |
denominator (required) | integer | ≥ -1,000,000,000,000, ≤ 1,000,000,000,000 | Denominator |
Output
| Field | Type | Description |
|---|---|---|
simplifiedNumerator | number | Simplified numerator |
simplifiedDenominator | number | Simplified denominator |
gcd | number | GCD (greatest common divisor) |
decimal | number | Decimal value |
wholePart | number | Whole part |
remainder | number | Remainder (numerator of the mixed number) |
signMoved | boolean | The denominator was negative; the minus sign was moved to the numerator. |
Example request
curl -X POST https://hesaplayici.com/api/v1/tools/math.fraction/execute \
-H 'Content-Type: application/json' \
-d '{"input":{"numerator":84,"denominator":126},"locale":"en"}'Example answer
{
"output": {
"simplifiedNumerator": 2,
"simplifiedDenominator": 3,
"gcd": 42,
"decimal": 0.6666666666666666,
"wholePart": 0,
"remainder": 2,
"signMoved": false
},
"steps": [
{
"id": "gcd",
"formula": "GCD = gcd(|numerator|, denominator)",
"substitution": "GCD = gcd(84, 126)",
"value": 42
},
{
"id": "simplifiedNumerator",
"formula": "simplified numerator = numerator / GCD",
"substitution": "simplified numerator = 84 / 42",
"value": 2
},
{
"id": "simplifiedDenominator",
"formula": "simplified denominator = denominator / GCD",
"substitution": "simplified denominator = 126 / 42",
"value": 3
},
{
"id": "decimal",
"formula": "decimal = numerator / denominator",
"substitution": "decimal = 84 / 126",
"value": 0.6666666666666666
},
{
"id": "wholePart",
"formula": "whole part = (simplified numerator − remainder) / simplified denominator",
"substitution": "whole part = (2 − 2) / 3",
"value": 0
},
{
"id": "remainder",
"formula": "remainder = simplified numerator − whole part × simplified denominator",
"substitution": "remainder = 2 − 0 × 3",
"value": 2
}
],
"notes": [],
"meta": {
"toolVersion": "1.0.0",
"locale": "en"
},
"citation": {
"url": "https://hesaplayici.com/en/math/simplify-fractions-calculator",
"title": "Fraction Simplifier"
}
}GCD and LCM Calculator
- Id
math.gcd-lcm- Version
- 1.0.0
- Access
- Free
- Tool page
- GCD and LCM Calculator
- Schema
GET /api/v1/tools/math.gcd-lcm
Input
| Field | Type | Constraints | Default | Description |
|---|---|---|---|---|
numbers (required) | array | Numbers |
Output
| Field | Type | Description |
|---|---|---|
gcd | number | GCD (greatest common divisor) |
lcm | number | LCM (least common multiple) |
count | number | Count of numbers |
Example request
curl -X POST https://hesaplayici.com/api/v1/tools/math.gcd-lcm/execute \
-H 'Content-Type: application/json' \
-d '{"input":{"numbers":[24,30]},"locale":"en"}'Example answer
{
"output": {
"gcd": 6,
"lcm": 120,
"count": 2
},
"steps": [
{
"id": "factors.1",
"formula": "n₁ = product of its prime factors",
"substitution": "24 = 2³ × 3",
"value": 24
},
{
"id": "factors.2",
"formula": "n₂ = product of its prime factors",
"substitution": "30 = 2 × 3 × 5",
"value": 30
},
{
"id": "gcd",
"formula": "GCD = product of the common prime factors, each with its lowest power",
"substitution": "GCD = 2 × 3",
"value": 6
},
{
"id": "lcm",
"formula": "LCM = product of all prime factors, each with its highest power",
"substitution": "LCM = 2³ × 3 × 5",
"value": 120
},
{
"id": "euclid.1",
"formula": "GCD(x, y) = GCD(y, x mod y)",
"substitution": "GCD(24, 30): 30 = 1 × 24 + 6; 24 = 4 × 6 + 0",
"value": 6
}
],
"notes": [],
"meta": {
"toolVersion": "1.0.0",
"locale": "en"
},
"citation": {
"url": "https://hesaplayici.com/en/math/gcd-lcm-calculator",
"title": "GCD and LCM Calculator"
}
}Percentage Calculator
- 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"
}
}Percentage Change Calculator
- Id
math.percentage-change- Version
- 1.0.0
- Access
- Free
- Tool page
- Percentage Change Calculator
- Schema
GET /api/v1/tools/math.percentage-change
Input
| Field | Type | Constraints | Default | Description |
|---|---|---|---|---|
oldValue (required) | number | ≥ -1,000,000,000,000,000, ≤ 1,000,000,000,000,000 | Old value | |
newValue (required) | number | ≥ -1,000,000,000,000,000, ≤ 1,000,000,000,000,000 | New value |
Output
| Field | Type | Description |
|---|---|---|
change | number | Percentage change (%) |
difference | number | Difference (new − old) |
ratio | number | Ratio new / old |
Example request
curl -X POST https://hesaplayici.com/api/v1/tools/math.percentage-change/execute \
-H 'Content-Type: application/json' \
-d '{"input":{"oldValue":250,"newValue":300},"locale":"en"}'Example answer
{
"output": {
"change": 20,
"difference": 50,
"ratio": 1.2
},
"steps": [
{
"id": "difference",
"formula": "difference = new − old",
"substitution": "difference = 300 − 250",
"value": 50
},
{
"id": "change",
"formula": "percentage change = difference / |old| × 100",
"substitution": "percentage change = 50 / 250 × 100",
"value": 20,
"unit": "%"
},
{
"id": "ratio",
"formula": "ratio = new / old",
"substitution": "ratio = 300 / 250",
"value": 1.2
}
],
"notes": [],
"meta": {
"toolVersion": "1.0.0",
"locale": "en"
},
"citation": {
"url": "https://hesaplayici.com/en/math/percentage-change-calculator",
"title": "Percentage Change Calculator"
}
}Proportion Calculator
- Id
math.ratio- Version
- 1.0.0
- Access
- Free
- Tool page
- Proportion Calculator
- Schema
GET /api/v1/tools/math.ratio
Input
| Field | Type | Constraints | Default | Description |
|---|---|---|---|---|
a (required) | number | ≥ -1,000,000,000,000, ≤ 1,000,000,000,000 | a (first value) | |
b (required) | number | ≥ -1,000,000,000,000, ≤ 1,000,000,000,000 | b (value that goes with a) | |
c (required) | number | ≥ -1,000,000,000,000, ≤ 1,000,000,000,000 | c (new value) | |
kind | string | direct | inverse | direct | Type of proportion |
Output
| Field | Type | Description |
|---|---|---|
x | number | x (the unknown) |
constant | number | Constant of proportionality (k) |
Example request
curl -X POST https://hesaplayici.com/api/v1/tools/math.ratio/execute \
-H 'Content-Type: application/json' \
-d '{"input":{"a":3,"b":12,"c":5,"kind":"direct"},"locale":"en"}'Example answer
{
"output": {
"x": 20,
"constant": 4
},
"steps": [
{
"id": "constant",
"formula": "k = b / a",
"substitution": "k = 12 / 3",
"value": 4
},
{
"id": "x",
"formula": "x = b × c / a",
"substitution": "x = 12 × 5 / 3",
"value": 20
}
],
"notes": [],
"meta": {
"toolVersion": "1.0.0",
"locale": "en"
},
"citation": {
"url": "https://hesaplayici.com/en/math/proportion-calculator",
"title": "Proportion Calculator"
}
}Ratio Simplifier
- Id
math.simplify-ratio- Version
- 1.0.0
- Access
- Free
- Tool page
- Ratio Simplifier
- Schema
GET /api/v1/tools/math.simplify-ratio
Input
| Field | Type | Constraints | Default | Description |
|---|---|---|---|---|
a (required) | number | > 0, ≤ 1,000,000,000 | a (first term) | |
b (required) | number | > 0, ≤ 1,000,000,000 | b (second term) |
Output
| Field | Type | Description |
|---|---|---|
simplifiedA | number | First term, simplified |
simplifiedB | number | Second term, simplified |
gcd | number | GCD |
scale | number | Whole-number multiplier |
quotient | number | Value of the ratio (a / b) |
perFirst | number | n in 1 : n (b / a) |
Example request
curl -X POST https://hesaplayici.com/api/v1/tools/math.simplify-ratio/execute \
-H 'Content-Type: application/json' \
-d '{"input":{"a":12,"b":18},"locale":"en"}'Example answer
{
"output": {
"simplifiedA": 2,
"simplifiedB": 3,
"gcd": 6,
"scale": 1,
"quotient": 0.6666666666666666,
"perFirst": 1.5
},
"steps": [
{
"id": "gcd",
"formula": "GCD = GCD(a, b)",
"substitution": "GCD = GCD(12, 18)",
"value": 6
},
{
"id": "simplifiedA",
"formula": "simplified a = a / GCD",
"substitution": "simplified a = 12 / 6",
"value": 2
},
{
"id": "simplifiedB",
"formula": "simplified b = b / GCD",
"substitution": "simplified b = 18 / 6",
"value": 3
}
],
"notes": [],
"meta": {
"toolVersion": "1.0.0",
"locale": "en"
},
"citation": {
"url": "https://hesaplayici.com/en/math/simplify-ratio-calculator",
"title": "Ratio Simplifier"
}
}Square Root and Cube Root Calculator
- Id
math.square-root- Version
- 1.0.0
- Access
- Free
- Tool page
- Square Root and Cube Root Calculator
- Schema
GET /api/v1/tools/math.square-root
Input
| Field | Type | Constraints | Default | Description |
|---|---|---|---|---|
x (required) | number | ≥ -1,000,000,000,000, ≤ 1,000,000,000,000 | Number | |
n | integer | ≥ 2, ≤ 100 | 2 | Index of the root (n) · 2 for a square root, 3 for a cube root. |
Output
| Field | Type | Description |
|---|---|---|
root | number | Root |
coefficient | number | Coefficient outside the root (a) |
radicand | number | Number under the root (b) |
notSimplified | boolean | The number is not whole, so the root is not simplified: a = 1 and b is the number itself. |
Example request
curl -X POST https://hesaplayici.com/api/v1/tools/math.square-root/execute \
-H 'Content-Type: application/json' \
-d '{"input":{"x":72,"n":2},"locale":"en"}'Example answer
{
"output": {
"root": 8.48528137423857,
"coefficient": 6,
"radicand": 2,
"notSimplified": false
},
"steps": [
{
"id": "root",
"formula": "root = √x",
"substitution": "root = √72",
"value": 8.48528137423857
},
{
"id": "simplified",
"formula": "√x = a × √b, a² × b = x",
"substitution": "√72 = √(6² × 2) = 6 × √2",
"value": 8.48528137423857
}
],
"notes": [],
"meta": {
"toolVersion": "1.0.0",
"locale": "en"
},
"citation": {
"url": "https://hesaplayici.com/en/math/square-root-calculator",
"title": "Square Root and Cube Root Calculator"
}
}Statistics Calculator
- Id
math.statistics- Version
- 1.0.0
- Access
- Free
- Tool page
- Statistics Calculator
- Schema
GET /api/v1/tools/math.statistics
Input
| Field | Type | Constraints | Default | Description |
|---|---|---|---|---|
numbers (required) | array | Numbers · Separate with spaces, new lines, semicolons or commas. Use a decimal point and no thousands separators. Up to 1,000 numbers. |
Output
| Field | Type | Description |
|---|---|---|
count | number | Count |
sum | number | Sum |
mean | number | Arithmetic mean |
median | number | Median |
minimum | number | Minimum |
maximum | number | Maximum |
range | number | Range |
modeCount | number | Number of modes |
modes | array | Modes and frequencies |
noMode | boolean | No value repeats; there is no mode. |
populationVariance | number | Population variance (σ²) |
populationStandardDeviation | number | Population standard deviation (σ) |
sampleVariance | number | Sample variance (s²) |
sampleStandardDeviation | number | Sample standard deviation (s) |
Example request
curl -X POST https://hesaplayici.com/api/v1/tools/math.statistics/execute \
-H 'Content-Type: application/json' \
-d '{"input":{"numbers":[430,430,480,480,495]},"locale":"en"}'Example answer
{
"output": {
"count": 5,
"sum": 2315,
"mean": 463,
"median": 480,
"minimum": 430,
"maximum": 495,
"range": 65,
"modeCount": 2,
"noMode": false,
"modes": [
{
"value": 430,
"frequency": 2
},
{
"value": 480,
"frequency": 2
}
],
"populationVariance": 756,
"populationStandardDeviation": 27.49545416973504,
"sampleVariance": 945,
"sampleStandardDeviation": 30.740852297878796
},
"steps": [
{
"id": "count",
"formula": "n = Count",
"substitution": "n",
"value": 5
},
{
"id": "sum",
"formula": "Σx = x₁ + … + xₙ",
"substitution": "Σx",
"value": 2315
},
{
"id": "mean",
"formula": "x̄ = Σx / n",
"substitution": "2,315 / 5",
"value": 463
},
{
"id": "median",
"formula": "Median = x₍(n+1)/2₎",
"substitution": "x₍3₎",
"value": 480
},
{
"id": "minimum",
"formula": "Minimum = x₍₁₎",
"substitution": "x₍₁₎",
"value": 430
},
{
"id": "maximum",
"formula": "Maximum = x₍ₙ₎",
"substitution": "x₍5₎",
"value": 495
},
{
"id": "range",
"formula": "Range = max − min",
"substitution": "495 − (430)",
"value": 65
},
{
"id": "modeCount",
"formula": "Number of modes = count(f(x) = fmax > 1)",
"substitution": "Count of repeated values tied for highest frequency",
"value": 2
},
{
"id": "mode.1",
"formula": "Modes and frequencies: Value",
"substitution": "430 (Frequency: 2)",
"value": 430
},
{
"id": "mode.2",
"formula": "Modes and frequencies: Value",
"substitution": "480 (Frequency: 2)",
"value": 480
},
{
"id": "populationVariance",
"formula": "σ² = Σ(x − x̄)² / n",
"substitution": "3,780 / 5",
"value": 756
},
{
"id": "populationStandardDeviation",
"formula": "σ = √σ²",
"substitution": "√(756)",
"value": 27.49545416973504
},
{
"id": "sampleVariance",
"formula": "s² = Σ(x − x̄)² / (n − 1)",
"substitution": "3,780 / (5 − 1)",
"value": 945
},
{
"id": "sampleStandardDeviation",
"formula": "s = √s²",
"substitution": "√(945)",
"value": 30.740852297878796
}
],
"notes": [],
"meta": {
"toolVersion": "1.0.0",
"locale": "en"
},
"citation": {
"url": "https://hesaplayici.com/en/math/statistics-calculator",
"title": "Statistics Calculator"
}
}