Grade Calculator API - weighted course grade and score needed on final exam
grade_calculatorCompute current weighted course grade from category weights and scores (percent, fractions like 17/20 or lists) and calculate the exact score required on the final exam for a target grade (and A/B/C/D table). Runs on our server, files are deleted right after the call, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €9/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.001/call via x402 at https://radarbg.com/x402/grade-calculator.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"mode": "final",
"categories": "Homework | 20 | 92\nMidterm | 40 | 81\nFinal | 40 |",
"targetPercent": "90"
},
"name": "grade_calculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | current (weighted grade) or final (score needed on final) | final |
| categories | Yes | One category per line (or JSON array): Name | weight | score | |
| finalWeight | No | Weight of the final exam (optional if an empty-score line exists) | |
| targetPercent | No | Target course grade % (for mode=final) | 90 |