Skip to main content
Glama
GPA Calculator MCP

GPA Calculator MCP

Convert a grade

convert_grade
Read-only

Converts a letter or percentage grade into its matching letter, percentage range, and grade points on a chosen grading scale, helping users compare grades across school systems.

Instructions

Convert a letter or percentage into the matching letter, percentage range and grade points on a grade scale. Inputs: grade (a letter like "B+" or a percentage like 87 or "87%") and a scale id. If the letter is not on the chosen scale, the error lists the valid letters for that scale. Example prompt: "Convert 78 percent to a letter grade on the Ontario college scale."

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": {
      "grade": "<grade>"
    },
    "name": "convert_grade"
  }
}

Input Schema

NameRequiredDescriptionDefault
gradeYesA letter like "B+" or a percentage like 87 or "87%".
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

Output Schema

NameRequiredDescriptionDefault
scaleYesThe scale id the grade was converted on.
letterYesThe letter the grade matches on the scale.
pointsYesGrade points the letter is worth on the scale.
scale_nameYesThe name of the scale the grade was converted on.
max_percentYesThe highest percentage the letter covers.
min_percentYesThe lowest percentage the letter covers.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.4

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover read-only and open-world behavior, and the description adds genuine behavioral detail beyond them: when the letter is not on the chosen scale, the error enumerates valid letters for that scale. That error-path disclosure is exactly the kind of context annotations cannot carry.

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?

It is front-loaded with the core conversion behavior, followed by inputs, error behavior, and a realistic example prompt. The input-formats sentence duplicates schema text, which is the only wasted material in an otherwise tight description.

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

Completeness5/5

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

For a two-parameter, read-only conversion tool with a full output schema, this covers inputs, scale defaulting, error behavior, and a usage example. Nothing needed to invoke it correctly is missing, and return values are handled by the output schema.

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

Parameters3/5

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

Schema description coverage is 100%, so both the grade format and scale enum with its default are already documented in the schema. The description's input examples ('B+', 87, '87%') and default-scale note largely restate the schema, adding no new parameter semantics beyond baseline.

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

Purpose5/5

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

The description uses a specific verb (convert) plus the resource and states the full output: matching letter, percentage range, and grade points on a grade scale. That distinguishes it from siblings like calculate_gpa or convert_gpa_scale, which operate on different inputs.

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

Usage Guidelines4/5

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

It gives clear context for use: grade input formats, scale selection, and an explicit instruction to ask the student which scale their school uses if unsure, plus a sample prompt. It does not name alternatives or state when NOT to use it versus list_scales or convert_gpa_scale, so it falls short of a 5.

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