Create Google Classroom assignment
create_google_classroom_assignmentCreate an assignment in Google Classroom with an Educaplay activity, in one of the Classroom courses of the user. It does exactly what sharing the activity to Google Classroom from the Educaplay website does: Educaplay creates the assignment, so the grade of each student reaches Classroom when they finish the game. As on the website, the activity can be one of the user's or one by another author. Call it only when the user asks to send or assign an activity to Google Classroom. Without course_id it creates nothing and returns the courses of the Google account connected to Educaplay: ask which one when it is not clear, then call again with its course_id. Each assignment counts against the Google Classroom limit of the plan of the user, the same as on the website.
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": {
"activity_id": "<activity_id>"
},
"name": "create_google_classroom_assignment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draft | No | true saves the assignment as a draft that only the teachers of the course see until they publish it in Classroom; false or omitted publishes it to the students right away. | |
| grade | No | Which game becomes the grade in Classroom: "first" (the default, as on the website) the first one the student finishes, "best" the best of all of them. | |
| course_id | No | Id of the Classroom course, from "courses" in a previous result of this tool. Omit it to get the courses. | |
| activity_id | Yes | Id of the activity: from list_my_activities, or the number in the address of the activity when the user gives its link. |