Skip to main content
Glama

canvas_get_dashboard

Retrieve user dashboard details from the Canvas Learning Management System to manage courses, assignments, enrollments, and grades efficiently using the MCP server.

Instructions

Get user's dashboard information

Input Schema

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

{ "properties": {}, "required": [], "type": "object" }

Implementation Reference

  • MCP tool handler implementation that executes the canvas_get_dashboard tool by calling CanvasClient.getDashboard() and formatting the response as JSON text.
    // Dashboard case "canvas_get_dashboard": { const dashboard = await this.client.getDashboard(); return { content: [{ type: "text", text: JSON.stringify(dashboard, null, 2) }] };
  • Tool schema definition including name, description, and empty input schema (no parameters required). Part of the TOOLS array used for registration.
    { name: "canvas_get_dashboard", description: "Get user's dashboard information", inputSchema: { type: "object", properties: {}, required: [] } },
  • CanvasClient helper method that makes the API call to /users/self/dashboard and returns the dashboard data.
    async getDashboard(): Promise<CanvasDashboard> { const response = await this.client.get('/users/self/dashboard'); return response.data; }
  • TypeScript interface defining the structure of the Canvas dashboard response (CanvasDashboard).
    export interface CanvasDashboard { dashboard_cards: CanvasDashboardCard[]; planner_items: CanvasPlannerItem[]; }
  • src/index.ts:1071-1073 (registration)
    Registration of the list tools handler that returns the full TOOLS array including canvas_get_dashboard.
    this.server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: TOOLS }));

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