Skip to main content
Glama

Calculator for Grading

Grade from questions wrong

grade_calculator
Read-onlyIdempotent

Use this when a student or teacher wants the percent and letter grade for a test from the number of questions wrong (or correct), e.g. "7 wrong out of 40". Returns the percent, the letter on the chosen scale, how many more correct answers reach the next letter, and optionally a chart of every possible number wrong. Do not use it for a final-exam target, weighted categories, GPA or test scores. Needs only numbers; never ask for names.

Input Schema

NameRequiredDescriptionDefault
scaleNo10_point = A 90, B 80, C 70, D 60 (default); 7_point = A 93, B 85, C 77, D 70; plus_minus = the site's preset with A+ 97 ... D- 60; pass_fail = pass at 60.
wrongNoQuestions wrong. Give wrong or correct, not both.
correctNoQuestions correct. Give wrong or correct, not both.
decimalsNoDecimals shown in the percent (default 0).
roundingNonearest rounds half up (default); down never rounds up, for teachers who truncate.
include_chartNoAlso return a chart row for each possible number wrong (first 60 rows).
custom_cutoffsNoOptional own cut-off percents, highest grade first, strictly descending (10_point: A, B, C, D = 4 numbers; plus_minus: 12 numbers). Use only when the user gives them.
total_questionsYesNumber of questions or points on the test.

Output Schema

NameRequiredDescriptionDefault
linkYesPage of calculatorforgrading.com with the same inputs filled in.
ruleYes
chartNo
scaleYes
wrongYes
letterYes
correctYes
next_letterYes
percent_exactYes
percent_shownYes
total_questionsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, so the safety profile is covered; the description adds value beyond them by disclosing the return contents (percent, letter on the chosen scale, gap to the next letter, optional chart) and the privacy rule 'Needs only numbers; never ask for names.' Minor gap: it says the chart covers 'every possible number wrong' while the schema caps it at the first 60 rows, an inconsistency an agent could trip over.

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

Conciseness5/5

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

Three sentences, front-loaded with the use case, then the return contract, then the exclusions and the input rule. Every sentence carries actionable routing or behavioral information; no filler.

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?

With an output schema present, 100% parameter coverage, and rich annotations, the description only needs to add routing and behavioral context — which it does. An agent has enough to decide between this and its five siblings and to invoke it without follow-up questions.

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 goes slightly further by framing inputs as 'wrong (or correct)' with a worked example ('7 wrong out of 40'), reinforcing the mutually exclusive wrong/correct choice. It does not add detail on scale, decimals, rounding or custom_cutoffs beyond the schema, so it stays just above 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?

States a specific verb and resource ('percent and letter grade for a test from the number of questions wrong (or correct)') with a concrete example ('7 wrong out of 40'). It also carves out the sibling territory it is not for (final-exam target, weighted categories, GPA, test scores), so an agent can route correctly without opening other schemas.

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

Usage Guidelines5/5

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

Explicit when-to-use ('when a student or teacher wants the percent and letter grade...') and explicit when-not ('Do not use it for a final-exam target, weighted categories, GPA or test scores'), which maps cleanly onto final_grade_needed, weighted_grade, gpa_calculator and test_score_calculator. Nothing is left to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources