Proportion Calculator: API and MCP
Proportion 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.ratio/mcp/math
- 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
{
"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
}
],
"meta": {
"toolVersion": "1.0.0",
"locale": "en"
},
"citation": {
"url": "https://hesaplayici.com/en/math/proportion-calculator",
"title": "Proportion Calculator"
}
}