Skip to main content
Glama

canvas_get_user_profile

Retrieve the current user's profile details directly from the Canvas Learning Management System API using this tool. Streamline profile data access for managing courses, enrollments, and grades efficiently.

Instructions

Get current user's profile

Input Schema

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

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

Implementation Reference

  • Core implementation of the user profile retrieval via Canvas API GET /users/self/profile
    async getUserProfile(): Promise<CanvasUserProfile> { const response = await this.client.get('/users/self/profile'); return response.data; }
  • MCP server tool handler that calls CanvasClient.getUserProfile() and returns JSON-formatted response
    case "canvas_get_user_profile": { const profile = await this.client.getUserProfile(); return { content: [{ type: "text", text: JSON.stringify(profile, null, 2) }] }; }
  • src/index.ts:412-419 (registration)
    Tool registration entry in TOOLS array defining name, description, and empty input schema
    name: "canvas_get_user_profile", description: "Get current user's profile", inputSchema: { type: "object", properties: {}, required: [] } },
  • TypeScript interface defining the structure of the Canvas user profile response
    export interface CanvasUserProfile { id: number; name: string; sortable_name: string; short_name: string; sis_user_id: string | null; login_id: string; avatar_url: string; primary_email: string; locale: string; bio: string | null; title?: string; time_zone?: string; calendar?: any; }

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