canvas_get_rubric
Retrieve detailed information about a specific rubric in Canvas using course and rubric IDs for precise grading and assessment management.
Instructions
Get details of a specific rubric
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| course_id | Yes | ID of the course | |
| rubric_id | Yes | ID of the rubric |
Input Schema (JSON Schema)
{
"properties": {
"course_id": {
"description": "ID of the course",
"type": "number"
},
"rubric_id": {
"description": "ID of the rubric",
"type": "number"
}
},
"required": [
"course_id",
"rubric_id"
],
"type": "object"
}
Implementation Reference
- src/index.ts:637-647 (registration)Registration of the 'canvas_get_rubric' tool in the TOOLS array, including its input schema definition.name: "canvas_get_rubric", description: "Get details of a specific rubric", inputSchema: { type: "object", properties: { course_id: { type: "number", description: "ID of the course" }, rubric_id: { type: "number", description: "ID of the rubric" } }, required: ["course_id", "rubric_id"] } },
- src/client.ts:469-472 (handler)Handler function in CanvasClient that executes the Canvas API call to retrieve the specific rubric by course and rubric ID.async getRubric(courseId: number, rubricId: number): Promise<CanvasRubric> { const response = await this.client.get(`/courses/${courseId}/rubrics/${rubricId}`); return response.data; }
- src/index.ts:639-647 (schema)Input schema validation for the tool parameters: course_id and rubric_id.inputSchema: { type: "object", properties: { course_id: { type: "number", description: "ID of the course" }, rubric_id: { type: "number", description: "ID of the rubric" } }, required: ["course_id", "rubric_id"] } },
- src/types.ts:387-398 (schema)TypeScript interface defining the structure of a Canvas rubric object returned by the tool.export interface CanvasRubric { id: number; title: string; context_id: number; context_type: string; points_possible: number; reusable: boolean; public: boolean; read_only: boolean; free_form_criterion_comments: boolean; criteria: CanvasRubricCriterion[]; }
- src/client.ts:464-467 (helper)Related helper method to list all rubrics in a course, which may be used in conjunction.async listRubrics(courseId: number): Promise<CanvasRubric[]> { const response = await this.client.get(`/courses/${courseId}/rubrics`); return response.data; }