get_user
Retrieve authenticated user information and enrolled courses from Ed Discussion to manage academic activity and content.
Instructions
Get authenticated user info and enrolled courses
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_user"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:93-99 (handler)The 'get_user' tool is defined here using server.tool, and it calls api.getUser() to fetch data.
server.tool("get_user", "Get authenticated user info and enrolled courses", {}, async () => { try { return ok(await api.getUser()); } catch (err) { return fail(err); } }); - src/api.ts:106-108 (handler)The actual implementation of getUser() inside the EdApiClient class in src/api.ts.
async getUser(): Promise<EdUserResponse> { return this.request<EdUserResponse>("GET", "user"); }