{"ok":true,"result":{"slug":"gpa-calculator","name":"GPA Calculator","summary":"US-style GPA on a 4.0 scale from letter grades and credits, optionally weighted for honors/AP courses and combined with a previous cumulative GPA.","description":"Calculate your semester GPA from letter grades and credits on a 4.0 scale, with optional honors and AP weighting and a cumulative GPA that includes past terms.","method":"POST","endpoint":"/api/v1/tools/gpa-calculator","plan":"free","mcpName":"gpa_calculator","input":{"type":"object","additionalProperties":false,"properties":{"courses":{"type":"string","description":"JSON array of courses, each {\"grade\": \"A+\"…\"F\" (A+, A, A-, B+, B, B-, C+, C, C-, D+, D, D-, F), \"credits\": number, \"level\": \"regular\" | \"honors\" | \"ap\" (optional), \"name\": string (optional)}. Up to 200 courses.","maxLength":50000},"weighted":{"type":"boolean","description":"Add +0.5 for honors and +1.0 for AP/IB courses (not for F).","default":false},"aPlusIs43":{"type":"boolean","description":"Count A+ as 4.3 instead of 4.0.","default":false},"priorGpa":{"type":"number","description":"Optional previous cumulative GPA, to also return the new cumulative GPA (give priorCredits too).","minimum":0,"maximum":5.3},"priorCredits":{"type":"number","description":"Credits behind priorGpa.","minimum":0}},"required":["courses"]},"example":{"courses":"[{\"name\":\"Calculus\",\"grade\":\"A\",\"credits\":4},{\"name\":\"History\",\"grade\":\"B+\",\"credits\":3},{\"name\":\"Chemistry\",\"grade\":\"A-\",\"credits\":4,\"level\":\"honors\"}]"},"randomOutput":false,"network":false,"docs":"https://pithlab.com/developers/tools/gpa-calculator","page":"https://pithlab.com/tools/gpa-calculator"}}