Skip to main content
Glama
GPA Calculator MCP

GPA Calculator MCP

What do I need on the final

needed_on_final
Read-only

Calculate the score needed on a final exam or last assignment to reach a target course grade from your current average and final weight; see if the target is locked in or out of reach.

Instructions

Calculate the score needed on a final exam or last assignment to reach a target course grade. Inputs: current_percent (the average on all the other work, 0 to 100), final_weight_percent (how much the final is worth, greater than 0 and at most 100) and a target. Give the target as target_percent (the course grade you want, 0 to 100), as target_letter (a letter like "B+" or a class like "2:1", whose cutoff comes from the scale table), or as both. The scale id sets the table the letter cutoff comes from. Says so when the target is already locked in or out of reach. Example prompt: "My grade is 85% and the final is worth 40% of the course. What do I need on the final to finish with a B+?"

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": {
      "current_percent": "<current_percent>",
      "final_weight_percent": "<final_weight_percent>"
    },
    "name": "needed_on_final"
  }
}

Input Schema

NameRequiredDescriptionDefault
scaleNoGrade scale id: "us4", "us4plus", "ontario-college", "uk-classification", "australia-hd" or "weighted-5.0". Defaults to "us4". Ask the student which one their school uses if unsure.us4
target_letterNoThe letter grade you want to finish with, like "B+" or "2:1", read from the scale table. Leave it out when you pass target_percent.
target_percentNoThe course grade you want to finish with, as a percentage between 0 and 100. Leave it out when you pass target_letter.
current_percentYesCurrent grade on the work already done, as a percentage between 0 and 100.
final_weight_percentYesHow much the final is worth, greater than 0 and at most 100, as a percentage of the whole course.

Output Schema

NameRequiredDescriptionDefault
scaleYesThe scale id the target was read from.
possibleYesTrue when the target can be reached with this weighting.
scale_nameYesThe name of the scale the target was read from.
already_thereYesTrue when the target is already reached, so a 0 on the final keeps it.
target_letterNoThe letter target that was asked for, when one was given.
needed_percentYesThe score needed on the final. It is below 0 when the target is already reached, and above 100 when the target is out of reach.
target_percentYesThe course grade to finish with, as a percentage.
current_percentYesThe grade on the work already done.
letter_min_percentNoThe lowest percentage the letter target covers, when a letter target was given.
final_weight_percentYesHow much the final is worth, as a percentage of the whole course.
final_grade_scenariosNoThe score needed on the final for each of the letters A, B and C side by side. A letter the scale does not have is left out, and the field is left out when the scale has none of them.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.9
    • addedOutput schema / properties / final_grade_scenarios
      Added value: +{
      +  "description": "The score needed on the final for each of the letters A, B and C side by side. A letter the scale does not have is left out, and the field is left out when the scale has none of them.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "already_there": {
      +        "description": "True when the letter is already reached, so a 0 on the final keeps it.",
      +        "type": "boolean"
      +      },
      +      "letter": {
      +        "description": "The letter of the scenario: A, B or C.",
      +        "type": "string"
      +      },
      +      "needed_percent": {
      +        "description": "The score needed on the final to reach that letter.",
      +        "type": "number"
      +      },
      +      "possible": {
      +        "description": "True when the letter can be reached with this weighting.",
      +        "type": "boolean"
      +      },
      +      "target_percent": {
      +        "description": "The lowest percentage the letter covers on the scale.",
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "letter",
      +      "target_percent",
      +      "needed_percent",
      +      "possible",
      +      "already_there"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  2. First observedv0.1.4

TDQS

A3.8/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The annotations already declare the tool as read-only, so the safety profile is covered. The description adds useful behavioral context beyond that, notably that it reports when the target is already locked in or out of reach, and it clarifies the target input modes.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with purpose, then moves through inputs, target options, edge-case behavior, and an example. It is slightly verbose and repeats some schema information, but each part remains useful and the example prompt earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description covers the purpose, required inputs, target alternatives, scale-table dependency, and the key edge case of an already secured or unreachable target. With an output schema present, return-value details need not be explained; only minor gaps remain around precedence when both target forms are supplied.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3. The description still adds meaningful semantics: current_percent is characterized as the average on all other work, target may be target_percent, target_letter, or both, and the scale id determines which table supplies letter cutoffs.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: calculating the score needed on a final exam or last assignment to reach a target course grade. It is clear what the tool does, but it does not explicitly differentiate itself from siblings such as weighted_grade or target_gpa_planner.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the example prompt and by the target-input options, but the description does not explicitly say when to use this tool versus alternatives. There are no when-not conditions or named sibling comparisons.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.