get_meeting_location
Retrieve a specific meeting location by providing its ID. Access location details for scheduling or reference.
Instructions
Get an meeting location
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ID of the meeting location to retrieve |
Implementation Reference
- src/tools/meeting_locations.ts:48-56 (handler)The handler function for the 'get_meeting_location' tool. It calls apiGet with the meeting location ID, logs the response, and formats the result using formatShow.
async ({ id }) => { try { const record = await apiGet<EduframeRecord>(`/meeting_locations/${id}`); void logResponse("get_meeting_location", { id }, record); return formatShow(record, "meeting location"); } catch (error) { return formatError(error); } }, - src/tools/meeting_locations.ts:44-46 (schema)The input schema for 'get_meeting_location' - expects a single 'id' parameter (positive integer).
description: "Get an meeting location", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true }, inputSchema: { id: z.number().int().positive().describe("ID of the meeting location to retrieve") }, - src/tools/meeting_locations.ts:41-57 (registration)Registration of the 'get_meeting_location' tool via server.registerTool, including its schema and handler.
server.registerTool( "get_meeting_location", { description: "Get an meeting location", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true }, inputSchema: { id: z.number().int().positive().describe("ID of the meeting location to retrieve") }, }, async ({ id }) => { try { const record = await apiGet<EduframeRecord>(`/meeting_locations/${id}`); void logResponse("get_meeting_location", { id }, record); return formatShow(record, "meeting location"); } catch (error) { return formatError(error); } }, ); - src/tools/index.ts:128-132 (registration)The registerAllTools function that invokes all tool registration functions, including registerMeetingLocationTools which registers 'get_meeting_location'.
export function registerAllTools(server: McpServer): void { for (const register of tools) { register(server); } } - src/tools/meeting_locations.ts:1-11 (helper)Imports used by the 'get_meeting_location' tool: zod for schema, apiGet for the API call, formatShow/formatError for response formatting, and logResponse for logging.
import { z } from "zod"; import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { apiDelete, apiGet, apiList, apiPatch, apiPost } from "../api"; import { formatCreate, formatDelete, formatError, formatList, formatShow, formatUpdate, type EduframeRecord,