Skip to main content
Glama

get_adult_education_details

Retrieve detailed course information including curriculum content, admission requirements, and application planning for Swedish adult education programs.

Instructions

Hämta detaljerad information om ett utbildningstillfälle.

ANVÄNDNINGSFALL:

  • Se fullständig kursinformation

  • Läsa kursplan

  • Kontrollera antagningskrav

  • Planera ansökan

RETURNERAR: Komplett utbildningsinfo inkl. innehåll och krav.

EXEMPEL: Använd ID från search_adult_education.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes

Implementation Reference

  • The main handler function for the get_adult_education_details tool. It calls the Planned Education API to fetch details for a specific adult education event by ID and returns formatted JSON or error message.
    export async function getAdultEducationDetails(params: {
      id: string;
    }) {
      try {
        const response = await plannedEducationApi.getAdultEducationDetails(params.id);
    
        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 utbildningsdetaljer: ${error instanceof Error ? error.message : String(error)}`
            }
          ],
          isError: true
        };
      }
  • Zod schema defining the input parameters for the tool: requires an 'id' string for the education event.
    export const getAdultEducationDetailsSchema = {
      id: z.string().describe('Utbildningstillfällets ID')
    };
  • Registration of the tool in the HTTP server's tools registry, mapping 'get_adult_education_details' to the handler function. Imported from './tools/planned-education/adult-education.js' on line 28.
    get_adult_education_details: getAdultEducationDetails,
  • API client method that performs the actual HTTP GET request to Skolverket's Planned Education API v3 to retrieve adult education event details by ID.
    async getAdultEducationDetails(id: string): Promise<ApiResponse<AdultEducationEvent>> {
      return this.get<ApiResponse<AdultEducationEvent>>(`/v3/adult-education-events/${id}`);
    }
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the tool returns 'Komplett utbildningsinfo inkl. innehåll och krav' (Complete education info including content and requirements), which gives some behavioral context about the output. However, it doesn't mention whether this is a read-only operation, what permissions might be required, potential rate limits, error conditions, or other behavioral traits. The description adds value but doesn't fully compensate for the lack of annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with clear sections (description, use cases, returns, example) and uses bullet points effectively. It's appropriately sized for the tool's complexity. However, the Swedish language might create minor accessibility issues for non-Swedish speaking agents, and some redundancy exists between 'detaljerad information' and 'Komplett utbildningsinfo'.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has no annotations, no output schema, and minimal schema description coverage, the description provides reasonable context about what the tool does and when to use it. The use cases and return statement help, but significant gaps remain: no parameter documentation, no behavioral details beyond basic output description, and no differentiation from similar sibling tools. For a tool with this level of structured data deficiency, the description is adequate but incomplete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 1 parameter with 0% description coverage (only a basic 'ZodString' type). The description doesn't mention the 'id' parameter at all in the main text, though the example implies its use. This fails to compensate for the schema's lack of parameter documentation. The description should explain what the ID represents, where to obtain it, and any format requirements, but provides none of this semantic information.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Hämta detaljerad information om ett utbildningstillfälle' (Get detailed information about an education instance). It specifies the verb ('hämta' - get/retrieve) and resource ('utbildningstillfälle' - education instance), making the purpose understandable. However, it doesn't explicitly differentiate from similar siblings like 'get_course_details' or 'get_program_details', which appear to serve related functions.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear usage context through 'ANVÄNDNINGSFALL' (use cases) listing specific scenarios like viewing course information, reading course plans, checking admission requirements, and planning applications. It also includes an example mentioning 'Använd ID från search_adult_education' (Use ID from search_adult_education), which gives practical guidance. However, it doesn't explicitly state when NOT to use this tool or compare it to alternatives among the many sibling tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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