get_course_thread
Retrieve a specific discussion thread from an Ed Discussion course using its course ID and thread number.
Instructions
Get a thread by its course-local number (the # shown in the Ed UI)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"course_id": "<course_id>",
"thread_number": "<thread_number>"
},
"name": "get_course_thread"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| course_id | Yes | Course ID | |
| thread_number | Yes | Thread number within the course |
Implementation Reference
- src/api.ts:134-142 (handler)The API implementation that performs the actual network request for getting a course thread.
async getCourseThread( courseId: number, threadNumber: number ): Promise<EdGetThreadResponse> { return this.request<EdGetThreadResponse>( "GET", `courses/${courseId}/threads/${threadNumber}` ); } - src/index.ts:154-167 (registration)The MCP tool registration and handler wrapper for get_course_thread.
server.tool( "get_course_thread", "Get a thread by its course-local number (the # shown in the Ed UI)", { course_id: z.number().describe("Course ID"), thread_number: z.number().describe("Thread number within the course"), }, async ({ course_id, thread_number }) => { try { return ok(await api.getCourseThread(course_id, thread_number)); } catch (err) { return fail(err); } }