Weighted average of categories
weighted_gradeUse this when a student wants the weighted course grade from categories such as homework 20%, tests 50%, final 30%. Each row has a score (percent, a fraction like 45/50, or a letter) and a weight; rows without a score count as still open. Returns the weighted average, the letter, how much weight is graded and open, and optionally what the open part must average to reach a target grade. Do not use it for a single final-exam question without categories.
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": {
"rows": "<rows>"
},
"name": "weighted_grade"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | ||
| scale | No | 10_point (default) or plus_minus. | |
| target_grade | No | Optional wanted course grade (percent or letter). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| link | Yes | Page of calculatorforgrading.com with the same inputs filled in. | |
| note | Yes | ||
| scale | Yes | ||
| letter | Yes | ||
| verdict | No | ||
| target_percent | No | ||
| open_weight_percent | Yes | ||
| graded_weight_percent | Yes | ||
| weighted_average_percent | Yes | ||
| needed_on_remaining_percent | No |