Skip to main content
Glama

UK Data: Everyday calculators

calculate_grade

Read-onlyIdempotent

Converts a numerical percentage score to a letter grade using standard grading scale (A, B, C, D, F). (cost: 1 credit)

Input Schema

NameRequiredDescriptionDefault
scoreNonumber, required, the percentage score (0-100)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already establish readOnlyHint=true, idempotentHint=true and destructiveHint=false, so the safety profile is covered by structured data. The description adds one genuinely useful behavioral fact beyond them: the call costs 1 credit. It does not disclose the actual grade cutoffs, which is the one behavioral detail an agent cannot infer.

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?

One front-loaded sentence covering the transformation and the scale, with the cost note appended. No filler, though the parenthetical cost could be separated so it does not compete with the primary statement.

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

Completeness3/5

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

For a single-parameter pure calculator with no output schema, the description is nearly sufficient — the return value (a letter grade) is clear. The missing piece is the mapping itself: 'standard grading scale' is ambiguous (90+ = A? 93+?), and out-of-range handling is unstated, which matters because the schema has no required-field enforcement.

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 the single parameter is already documented as a 0-100 percentage; the description merely restates 'numerical percentage score'. It does not resolve the schema's union type (number or string) or clarify what happens for out-of-range values, so it adds little beyond the schema.

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 both the input and output resources: converting a numerical percentage score into a letter grade on an A-F scale. This also implicitly distinguishes it from calculate_gpa, the nearest sibling, which works on a grade-point scale rather than percentages.

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 pure-function nature of the tool (feed it a percentage, get a letter), but there is no explicit when-to-use guidance, no pointer to calculate_gpa for GPA-style conversions, and no statement of prerequisites. Nothing misleads, but nothing routes the agent either.

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