calculate_gpa
Calculates the Grade Point Average (GPA) from a list of grade points on a 4.0 scale. Returns the mean of all grades rounded to 2 decimal places. (cost: 1 credit)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "calculate_gpa"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grades | No | array of numbers, required, list of grade points (typically 0.0 to 4.0 scale) |