get_custom_record
Retrieve a specific custom record by providing the parent resource ID and the record ID.
Instructions
Get a custom record
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| object_slug | Yes | ID of the parent resource | |
| id | Yes | ID of the custom record to retrieve |
Implementation Reference
- src/tools/custom_records.ts:34-53 (registration)Registration of the 'get_custom_record' tool with input schema and handler
server.registerTool( "get_custom_record", { description: "Get a custom record", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true }, inputSchema: { object_slug: z.number().int().positive().describe("ID of the parent resource"), id: z.number().int().positive().describe("ID of the custom record to retrieve"), }, }, async ({ object_slug, id }) => { try { const record = await apiGet<EduframeRecord>(`/custom/objects/${object_slug}/records/${record_id}`); void logResponse("get_custom_record", { object_slug, id }, record); return formatShow(record, "custom record"); } catch (error) { return formatError(error); } }, ); - src/tools/custom_records.ts:44-52 (handler)Handler function for get_custom_record - fetches a custom record by object_slug and id via API call
async ({ object_slug, id }) => { try { const record = await apiGet<EduframeRecord>(`/custom/objects/${object_slug}/records/${record_id}`); void logResponse("get_custom_record", { object_slug, id }, record); return formatShow(record, "custom record"); } catch (error) { return formatError(error); } }, - src/tools/custom_records.ts:36-42 (schema)Input schema for get_custom_record: object_slug (int, positive, required) and id (int, positive, required)
{ description: "Get a custom record", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true }, inputSchema: { object_slug: z.number().int().positive().describe("ID of the parent resource"), id: z.number().int().positive().describe("ID of the custom record to retrieve"), },