Skip to main content
Glama
enrollments.ts675 B
import { client } from '../client.js'; import { marshalEnrollments, RawEnrollment } from '../utils/marshal.js'; export const enrollmentTools = { get_my_courses: { description: `List all courses you're enrolled in. Returns: course name, course code, org unit ID (needed for other tools), access status, start/end dates. Use to answer: "What courses am I in?", "Show my classes", "What's the course ID for X?", "List my enrollments"`, schema: {}, handler: async (): Promise<string> => { const enrollments = await client.getMyEnrollments() as { Items: RawEnrollment[] }; return JSON.stringify(marshalEnrollments(enrollments), null, 2); }, }, };

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/General-Mudkip/d2l-mcp-server'

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