MCP ServerTool Reference
Grade Exam Response
Grade Exam Response MCP tool.
Grade Exam Response
Grade one response from list_exam_grading_queue. points_earned cannot exceed points_possible; omitted feedback keeps existing feedback. The attempt score recalculates once no responses remain ungraded.
Contract
| Field | Value |
|---|---|
| Tool name | grade_exam_response |
| Domain | grading |
| Required scopes | assessments:write |
| Title | Grade exam response |
| Read only hint | false |
| Destructive hint | false |
| Idempotent hint | true |
| Open world hint | false |
| Bulk limit | none |
| Timeout | 15000ms |
| Kill switch key | grading.exam_response.grade |
| REST sibling | POST /api/public/v1/exam-responses/{id}/grade |
Input Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"points_earned": {
"type": "number",
"minimum": 0
},
"feedback": {
"type": "string",
"maxLength": 10000
},
"idempotency_key": {
"type": "string",
"minLength": 8,
"maxLength": 200,
"pattern": "^[A-Za-z0-9._:-]+$"
}
},
"required": [
"id",
"points_earned",
"idempotency_key"
],
"additionalProperties": false
}Output Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"content": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "text"
},
"text": {
"type": "string"
}
},
"required": [
"type",
"text"
],
"additionalProperties": false
}
}
},
"required": [
"content"
],
"additionalProperties": false
}