工具:get_course_work_rubric
检索特定课程作业项的评分准则标准和等级。
以下代码示例展示了如何使用 curl 调用 get_course_work_rubric MCP 工具。
| Curl 请求 |
|---|
curl --location 'https://classroommcp.googleapis.com/mcp/v1' \ --header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \ --header 'content-type: application/json' \ --header 'accept: application/json, text/event-stream' \ --data '{ "method": "tools/call", "params": { "name": "get_course_work_rubric", "arguments": { // Provide these details according to the MCP tool specification. } }, "jsonrpc": "2.0", "id": 1 }' |
输入架构
请求检索课程作业项的评分准则。
GetCourseWorkRubricRequest
| JSON 表示法 |
|---|
{ "courseId": string, "courseWorkId": string } |
| 字段 | |
|---|---|
courseId |
必需。课程的标识符。 |
courseWorkId |
必需。课程作业内容的标识符。 |
输出架构
课程作业项的评分准则。
评分准则
| JSON 表示法 |
|---|
{
"criteria": [
{
object ( |
| 字段 | |
|---|---|
criteria[] |
评分准则的评分标准。 |
标准
| JSON 表示法 |
|---|
{ "id": string, "title": string, "description": string, "levels": [ { object ( |
| 字段 | |
|---|---|
id |
仅限输出。标识符。条件 ID。 |
title |
条件的标题。 |
description |
条件的说明。 |
levels[] |
此标准的表现水平。 |
learningGoal |
附加到此条件的学习目标。 |
级别
| JSON 表示法 |
|---|
{ "id": string, "title": string, "description": string, "points": number } |
| 字段 | |
|---|---|
id |
仅限输出。标识符。关卡 ID。 |
title |
关卡标题。 |
description |
关卡说明。 |
points |
此级别可获得的积分。 |
LearningGoal
| JSON 表示法 |
|---|
{
"id": string,
"type": enum ( |
| 字段 | |
|---|---|
id |
仅限输出。学习目标的 ID。如需附加标准,请使用 search_course_standards 中的 |
type |
仅限输出。学习目标的类型。 |
standardCode |
仅限输出。标准代码(例如“NY-2.NBT.4”)。仅针对标准进行填充。 |
title |
仅限输出。标准的陈述说明,或技能的人类可读标题。 |
documentTitle |
仅限输出。课程文档名称。仅针对标准进行填充。 |
类型
学习目标的类型。
| 枚举 | |
|---|---|
TYPE_UNSPECIFIED |
未指定学习目标类型。 |
STANDARD |
学术课程中的学业标准。 |
SKILL |
代表教育概念或能力的技能。在 Google 课堂中,只有教师可以添加或移除技能。 |
工具注释
工具注解会发送到 MCP 客户端,用于描述给定工具的基本风险。大多数客户端会将这些提示视为不可信,但它们可用于决定何时向用户发送确认提示。
除了标题字符串之外,还定义了以下布尔值提示:
readOnlyHint:如果为 true,则该工具不会修改其环境。默认值:false。destructiveHint:如果为 true,则该工具可以执行破坏性操作。如果为 false,则该工具只能执行添加操作。默认值:true。idempotentHint:如果为 true,则使用相同参数重复调用该工具不会对其环境产生额外影响。默认值:false。openWorldHint:如果为 true,则该工具可以与外部实体的“开放世界”进行交互。如果为 false,则该工具只能与内部实体交互。例如,网页搜索工具是开放式的,而记忆工具不是开放式的。
破坏性提示:❌ | 等幂性提示:✅ | 只读提示:✅ | 开放世界提示:❌
授权范围
需要以下 OAuth 范围之一:
https://www.googleapis.com/auth/classroom.coursework.studentshttps://www.googleapis.com/auth/classroom.coursework.students.readonlyhttps://www.googleapis.com/auth/classroom.coursework.mehttps://www.googleapis.com/auth/classroom.coursework.me.readonly