Skip to main content
Glama

explain_grade

Read-only

Recomputes and explains a student's weighted course grade, including assignment group weights, drop rules, and letter grade, with reconciliation against Canvas's displayed score.

Instructions

Recomputes and explains the weighted course grade for a student, including assignment-group weights, drop_lowest / drop_highest / never_drop rules, per-group breakdowns (earned points, dropped assignments, weighted contributions), the mapped letter grade (via the course grading standard when present), and a reconciliation check against Canvas's posted current_score / final_score.

Use this when you need to verify that Canvas's displayed grade matches the rules, or to explain to a student or instructor how their grade was calculated.

Limitations:

  • V1 computes one student per call. Omit student_id to compute for the authenticated user.

  • Instructor-applied curves and fudge points are not exposed via the Canvas REST API and cannot be reflected in the computation; a caveat is added when the discrepancy exceeds 0.5 pp.

  • When the course uses grading periods, reconciliation is against the overall (cross-period) grade.

  • When CANVAS_PSEUDONYMIZE_STUDENTS is enabled and you are passing a student_id, first call resolve_pseudonym to obtain the real Canvas user_id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
course_idYesCanvas course ID to compute the grade for.
student_idNoCanvas user_id of the student to compute the grade for. Omit to compute for the currently authenticated user. Instructors may pass any enrolled student's user_id. When CANVAS_PSEUDONYMIZE_STUDENTS is enabled, pass the numeric Canvas user_id after resolving the pseudonym via resolve_pseudonym.
assignment_group_idNoNarrow the output to a single assignment group. When omitted all groups are included and the overall course grade is computed.
Behavior5/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=true. The description adds significant behavioral context: it explains that the tool recomputes grades using Canvas data, handles edge cases (curves, fudge points, grading periods), and provides a reconciliation check. There is no contradiction with annotations; instead, the description enriches understanding of the tool's behavior and limitations.

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 well-structured with an introductory sentence, a use-case paragraph, and a limitations section. It is front-loaded with core functionality and avoids repetition. However, it could be slightly more concise by condensing the limitations into bullet points or fewer sentences. Overall, it is organized and efficient, earning a 4.

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?

Given the tool's complexity and the absence of an output schema, the description thoroughly covers what the tool returns: assignment-group weights, drop rules, per-group breakdowns, letter grade, and reconciliation check. It also addresses important edge cases (curves, grading periods, pseudonymization). The sibling context shows that no other tool provides this detailed grade explanation, making the description complete for agent understanding.

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?

The input schema has 100% description coverage, so the schema already documents the parameters. The main description adds value through the limitations section (e.g., omitting student_id for authenticated user, resolving pseudonyms) that provides usage context beyond the schema's property descriptions. While not deeply detailed, this auxiliary guidance justifies a score above the baseline of 3.

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 starts with a specific verb 'Recomputes and explains' and clearly identifies the resource: 'weighted course grade for a student'. It enumerates what the output includes (weights, drop rules, per-group breakdowns, letter grade, reconciliation check), distinguishing it from siblings like 'project_grade' or 'explain_grading_policy' which serve different purposes. The purpose is unambiguous and well-scoped.

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?

The description explicitly states when to use the tool: 'verify that Canvas's displayed grade matches the rules' or 'explain to a student or instructor how their grade was calculated'. It provides limitations (single student per call, curves not reflected, grading periods, pseudonymization) that guide appropriate usage. However, it does not explicitly mention when not to use it or suggest alternative tools, which keeps it from a score of 5.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bruchris/canvas-lms-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server