canvas_get_user_grades
Retrieve all user grades from the Canvas LMS API using the MCP server, enabling efficient tracking and management of academic performance within the platform.
Instructions
Get all grades for the current user
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Input Schema (JSON Schema)
{
"properties": {},
"required": [],
"type": "object"
}
Implementation Reference
- src/client.ts:577-580 (handler)Core implementation of the tool: fetches the current user's grades from Canvas API endpoint `/users/self/grades`.async getUserGrades(): Promise<any> { const response = await this.client.get('/users/self/grades'); return response.data; }
- src/index.ts:1362-1367 (handler)MCP server handler for the tool: calls the CanvasClient.getUserGrades() method and formats the response as MCP content.case "canvas_get_user_grades": { const grades = await this.client.getUserGrades(); return { content: [{ type: "text", text: JSON.stringify(grades, null, 2) }] }; }
- src/index.ts:401-408 (registration)Tool registration in the TOOLS array, including name, description, and empty input schema (no parameters required).name: "canvas_get_user_grades", description: "Get all grades for the current user", inputSchema: { type: "object", properties: {}, required: [] } },