Skip to main content
Glama
getCourseDetails.ts752 B
import { canvasGet } from "../../client.js"; export interface GetCourseDetailsInput { courseIdentifier: string | number; } export interface CourseDetails { id: number; name: string; course_code: string; workflow_state: string; start_at?: string; end_at?: string; time_zone?: string; syllabus_body?: string; enrollment_term_id?: number; } /** * Get detailed information about a specific course. * * @param input - Course identifier (code or ID) * @returns Detailed course information including syllabus and timezone */ export async function getCourseDetails( input: GetCourseDetailsInput ): Promise<CourseDetails> { const { courseIdentifier } = input; return canvasGet<CourseDetails>(`/courses/${courseIdentifier}`); }

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/vishalsachdev/canvas-mcp'

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