grade_manually
Manually grade Moodle assignment submissions with numeric grades and HTML-safe feedback, supporting team grading and marking workflow states.
Instructions
Manually grade an assignment submission (mod_assign_save_grade). Feedback text is HTML-safe. Supports team grading and marking workflow state.
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": {
"assign_id": "<assign_id>",
"user_id": "<user_id>",
"grade": "<grade>"
},
"name": "grade_manually"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grade | Yes | Numeric grade. -1 means "no grade yet". Negative values other than -1 are invalid in most scales. | |
| user_id | Yes | ||
| assign_id | Yes | ||
| feedback_text | No | ||
| attempt_number | No | -1 = grade the latest attempt. Otherwise specify the attempt number. | |
| workflow_state | No | Marking workflow state (only applies when the assignment has workflow enabled). | |
| apply_to_all_members | No | If the assignment uses team submission, apply this grade to every member of the team. |