Skip to main content
Glama

canvas_health_check

Monitor and verify the health and connectivity of the Canvas API to ensure reliable interaction with courses, assignments, enrollments, and grades.

Instructions

Check the health and connectivity of the Canvas API

Input Schema

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

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

Implementation Reference

  • Executes the canvas_health_check tool by calling the CanvasClient's healthCheck method and returning the result as formatted JSON text.
    case "canvas_health_check": { const health = await this.client.healthCheck(); return { content: [{ type: "text", text: JSON.stringify(health, null, 2) }] }; }
  • Defines the tool schema including name, description, and empty input schema (no parameters required).
    { name: "canvas_health_check", description: "Check the health and connectivity of the Canvas API", inputSchema: { type: "object", properties: {}, required: [] } },
  • src/index.ts:1071-1074 (registration)
    Registers the list of available tools, including canvas_health_check, via the ListToolsRequestSchema handler.
    this.server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: TOOLS }));
  • Core helper function in CanvasClient that performs the health check by attempting to fetch the current user's profile, returning status and basic user info on success or error status.
    async healthCheck(): Promise<{ status: 'ok' | 'error'; timestamp: string; user?: any }> { try { const user = await this.getUserProfile(); return { status: 'ok', timestamp: new Date().toISOString(), user: { id: user.id, name: user.name } }; } catch (error) { return { status: 'error', timestamp: new Date().toISOString() }; } }

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