create_planning_required_teacher_group_attendee
Assign a teacher to a required teacher group to satisfy planning requirements.
Instructions
Assign a teacher to a required teacher group
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| teacher_id | Yes | Unique identifier of the teacher to assign. | |
| required_teacher_group_id | Yes | Unique identifier of the required teacher group to satisfy. |
Implementation Reference
- The async handler that executes the tool logic - calls apiPost to create a planning required teacher group attendee and formats the result.
async (body) => { try { const record = await apiPost<EduframeRecord>("/planning/required_teacher_group_attendees", body); void logResponse("create_planning_required_teacher_group_attendee", body, record); return formatCreate(record, "planning required teacher group attendee"); } catch (error) { return formatError(error); } }, ); - Input schema definition for the tool, requiring teacher_id and required_teacher_group_id as integer properties.
{ description: "Assign a teacher to a required teacher group", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false }, inputSchema: { teacher_id: z.number().int().describe("Unique identifier of the teacher to assign."), required_teacher_group_id: z .number() .int() .describe("Unique identifier of the required teacher group to satisfy."), }, }, - src/tools/planning_required_teacher_group_attendees.ts:7-30 (registration)The function registerPlanningRequiredTeacherGroupAttendeeTools that registers the tool on the McpServer with name 'create_planning_required_teacher_group_attendee'.
export function registerPlanningRequiredTeacherGroupAttendeeTools(server: McpServer): void { server.registerTool( "create_planning_required_teacher_group_attendee", { description: "Assign a teacher to a required teacher group", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false }, inputSchema: { teacher_id: z.number().int().describe("Unique identifier of the teacher to assign."), required_teacher_group_id: z .number() .int() .describe("Unique identifier of the required teacher group to satisfy."), }, }, async (body) => { try { const record = await apiPost<EduframeRecord>("/planning/required_teacher_group_attendees", body); void logResponse("create_planning_required_teacher_group_attendee", body, record); return formatCreate(record, "planning required teacher group attendee"); } catch (error) { return formatError(error); } }, ); - src/tools/index.ts:109-109 (registration)Where the registration function is called in the tools index.
registerPlanningRequiredTeacherGroupAttendeeTools,