Skip to main content
Glama

get_api_info

Retrieve API metadata and technical documentation for Skolverket's educational data services, including version details and contact information.

Instructions

Hämta information om Skolverkets Läroplan API.

ANVÄNDNINGSFALL:

  • Se API-version

  • Kontakta information

  • Teknisk dokumentation

RETURNERAR: API-metadata och information.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The primary handler function for the 'get_api_info' MCP tool. It fetches API information from the syllabus API client and returns a formatted text response containing the JSON data, with error handling.
    export async function getApiInfo() { try { const info = await syllabusApi.getApiInfo(); return { content: [ { type: 'text' as const, text: JSON.stringify(info, null, 2) } ] }; } catch (error) { return { content: [ { type: 'text' as const, text: `Fel vid hämtning av API-information: ${error instanceof Error ? error.message : String(error)}` } ], isError: true }; } }
  • Registration of the 'get_api_info' tool in the tools registry object used by the HTTP/SSE MCP server.
    get_school_types: getSchoolTypes, get_types_of_syllabus: getTypesOfSyllabus, get_subject_and_course_codes: getSubjectAndCourseCodes, get_study_path_codes: getStudyPathCodes, get_api_info: getApiInfo,
  • Import statement that brings in the getApiInfo handler function for registration as the 'get_api_info' tool.
    import { getSchoolTypes, getTypesOfSyllabus, getSubjectAndCourseCodes, getStudyPathCodes, getApiInfo } from './tools/syllabus/valuestore.js';
  • Helper method in the Syllabus API client that fetches cached API information from '/v1/api-info' endpoint.
    async getApiInfo(): Promise<ApiInfo> { return this.getCached<ApiInfo>('/v1/api-info', undefined, 3600000); }

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