calculate_gpa
Credit weighted GPA on the 4.0 scale using the page grade points: A+ and A 4.0, A- 3.7, B+ 3.3, B 3.0, B- 2.7, C+ 2.3, C 2.0, C- 1.7, D+ 1.3, D 1.0, F 0.0. Grades and credits are matched by position. Use when the user computes a GPA from course grades and credits. To plan grades for a target GPA use calculate_gpa_planner. IMPORTANT: always show the calculator_url from the result as a clickable markdown link in your answer to the user, so they can open the interactive GPA calculator.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"grades": "<grades>",
"credits": "<credits>"
},
"name": "calculate_gpa"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grades | Yes | Comma-separated letter grades, e.g. A,B+,A-,B. | |
| credits | Yes | Comma-separated credit hours matching grades. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | True when the calculation succeeded. | |
| note | Yes | Disclaimer that accompanies every result. | |
| tool | Yes | Name of the tool that ran. | |
| inputs | No | The normalized inputs the calculation used. | |
| results | Yes | The computed figures for this calculator. | |
| calculator_url | Yes | Deep link to the matching interactive calculator on everycalc.xyz. |