Skip to main content
Glama

Skolverket MCP Server

support-data.ts1.59 kB
/** * Verktyg för stöddata - områden, inriktningar, etc. */ import { z } from 'zod'; import { plannedEducationApi } from '../../api/planned-education-client.js'; // Zod-scheman för validering export const getEducationAreasSchema = {}; export const getDirectionsSchema = {}; // Verktygsimplementationer export async function getEducationAreas() { try { const response = await plannedEducationApi.getEducationAreas(); if (response.status !== 'OK') { throw new Error(response.message || 'Okänt fel från API'); } return { content: [ { type: 'text' as const, text: JSON.stringify(response.body, null, 2) } ] }; } catch (error) { return { content: [ { type: 'text' as const, text: `Fel vid hämtning av utbildningsområden: ${error instanceof Error ? error.message : String(error)}` } ], isError: true }; } } export async function getDirections() { try { const response = await plannedEducationApi.getDirections(); if (response.status !== 'OK') { throw new Error(response.message || 'Okänt fel från API'); } return { content: [ { type: 'text' as const, text: JSON.stringify(response.body, null, 2) } ] }; } catch (error) { return { content: [ { type: 'text' as const, text: `Fel vid hämtning av inriktningar: ${error instanceof Error ? error.message : String(error)}` } ], isError: true }; } }

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/KSAklfszf921/skolverket-syllabus-mcp'

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