Skip to main content
Glama

get_program_details

Retrieve detailed information about Swedish educational programs including structure, specializations, career outcomes, and required courses to support academic planning and guidance.

Instructions

Hämta detaljerad information om ett specifikt program.

ANVÄNDNINGSFALL:

  • Djupdyka i programstruktur

  • Se alla inriktningar och profiler

  • Förstå yrkesutfall och karriärvägar

  • Planera studieväg

  • Vägledning och rådgivning

RETURNERAR: Komplett programinformation inkl:

  • Alla inriktningar

  • Profiler och specialiseringar

  • Yrkesutfall och fortsatta studier

  • Programspecifika kurser

EXEMPEL: code="NA" för Naturvetenskapsprogrammet, "TE" för Teknikprogrammet.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYes
versionNo

Implementation Reference

  • The main asynchronous handler function that executes the get_program_details tool. It fetches program details using the syllabusApi and returns a formatted JSON response or an error message.
    export async function getProgramDetails(params: { code: string; version?: number; date?: string; }) { try { const program = await syllabusApi.getProgram(params.code, params.version, params.date); return { content: [ { type: 'text' as const, text: JSON.stringify(program, null, 2) } ] }; } catch (error) { return { content: [ { type: 'text' as const, text: `Fel vid hämtning av programdetaljer: ${error instanceof Error ? error.message : String(error)}` } ], isError: true }; } }
  • Zod schema defining the input parameters and descriptions for the get_program_details tool.
    export const getProgramDetailsSchema = { code: z.string().describe('Programkod (t.ex. "NA" för Naturvetenskapsprogrammet)'), version: z.number().optional().describe('Versionsnummer (lämna tomt för senaste versionen)'), date: z.string().optional().describe('Datum i formatet YYYY-MM-DD för att hämta versionen som var giltig vid det datumet') };
  • Registration of the get_program_details handler in the tools registry object used by the HTTP server.
    search_programs: searchPrograms, get_program_details: getProgramDetails, get_program_versions: getProgramVersions,

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/isakskogstad/skolverket-syllabus-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server