Skip to main content
Glama

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

TableJSON Schema
NameRequiredDescriptionDefault
course_idYesID of the course
rubric_idYesID of the rubric

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"]
      }
    },
  • 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;
    }
  • 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"]
      }
    },
  • 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[];
    }
  • 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;
    }
Install Server

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/DMontgomery40/mcp-canvas-lms'

If you have feedback or need assistance with the MCP directory API, please join our Discord server