delete_meeting_location
Delete a specific meeting location for a course by providing its ID. Removes unwanted or outdated locations from the system.
Instructions
Delete a course location.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ID of the meeting location to delete |
Implementation Reference
- src/tools/meeting_locations.ts:133-141 (handler)The handler function for the 'delete_meeting_location' tool. It accepts an 'id' parameter, calls apiDelete to DELETE /meeting_locations/:id, logs the response, and returns a formatted delete result.
async ({ id }) => { try { const record = await apiDelete<EduframeRecord>(`/meeting_locations/${id}`); void logResponse("delete_meeting_location", { id }, record); return formatDelete(record, "meeting location"); } catch (error) { return formatError(error); } }, - Input schema for 'delete_meeting_location': requires a positive integer 'id' field describing the meeting location to delete.
description: "Delete a course location.", annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: true }, inputSchema: { id: z.number().int().positive().describe("ID of the meeting location to delete") }, - src/tools/meeting_locations.ts:126-142 (registration)Registration of 'delete_meeting_location' tool via server.registerTool() with description and destructiveHint annotation.
server.registerTool( "delete_meeting_location", { description: "Delete a course location.", annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: true }, inputSchema: { id: z.number().int().positive().describe("ID of the meeting location to delete") }, }, async ({ id }) => { try { const record = await apiDelete<EduframeRecord>(`/meeting_locations/${id}`); void logResponse("delete_meeting_location", { id }, record); return formatDelete(record, "meeting location"); } catch (error) { return formatError(error); } }, ); - src/tools/index.ts:96-96 (registration)The registerMeetingLocationTools function is included in the tools array, which is iterated to register all tools on the MCP server.
registerMeetingLocationTools, - src/api.ts:214-229 (helper)The apiDelete helper function used by the handler to perform the HTTP DELETE request to the Eduframe API.
/** * Perform a DELETE request to remove a resource. * * @param path - API path, e.g. "/leads/1" */ export async function apiDelete<T>(path: string): Promise<T> { const { token } = getConfig(); const url = buildUrl(path); const response = await fetch(url.toString(), { method: "DELETE", headers: buildHeaders(token), }); return handleResponse<T>(response); }