Skip to main content
Glama

get_learning_groups

Read-onlyIdempotent

List enrolled courses and learning groups with subject, course code, semester, and teacher. Use it to find responsible teachers or resolve teacher abbreviations.

Instructions

Return the learning groups (Lerngruppen) the user belongs to.

Fetches all learning groups/courses the authenticated user is enrolled in, including subject name, course code, semester, and teacher information.

Use this tool to:

  • List all courses/subjects the user is enrolled in

  • Look up which teacher is responsible for a given subject or course

  • Resolve teacher abbreviations to full names (the teacher field contains both the full name and the abbreviation used in substitution plans)

Args: response_format: Output format - 'markdown' (default) or 'json'.

Returns: List of learning groups. JSON schema: { "count": int, "groups": [ { "id": str, "semester": str, "course_name": str, "course_code": str, "teacher": str # full name and/or abbreviation } ] }

Error Handling: - Returns "Error: ..." on API or auth failure - Returns "No learning groups found." if there are none

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_learning_groups"
  }
}

Input Schema

NameRequiredDescriptionDefault
response_formatNomarkdown

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, so the safety profile is covered. The description adds real value beyond that by documenting the failure surface ('Returns "Error: ..." on API or auth failure' and 'No learning groups found.'), but it does not discuss pagination, result size, or what openWorld remote access implies. Good additions, still incomplete against the annotation baseline.

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

Conciseness3/5

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

The header sentence and the 'Use this tool to' list are front-loaded and earn their place. However, the full 'Returns' JSON block and the 'Args' entry restate what the output schema and input schema already define, so a meaningful share of the text is duplicated structured data.

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

Completeness4/5

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

For a single-optional-param read tool with an output schema and full safety annotations, the description covers purpose, scenarios, format choice, and error/empty-result behavior. The remaining redundancy in the return block is a conciseness issue rather than a completeness gap.

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

Parameters4/5

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

The single optional parameter is documented in prose with both allowed values and the default ('markdown' (default) or 'json'), which compensates for the reported 0% top-level schema coverage where the detail lives only in a $ref'd $defs entry. The meaning of the format choice on output shape is not spelled out, keeping it below full marks.

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

Purpose5/5

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

States a specific verb and resource ('Return the learning groups (Lerngruppen) the user belongs to') and then enumerates exactly what is fetched: subject name, course code, semester, teacher. An agent can distinguish this enrolment/course-lookup tool from the calendar, timetable, and substitution siblings without opening the schema.

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?

A 'Use this tool to' block gives three concrete scenarios, including a non-obvious one (resolving teacher abbreviations used in substitution plans). It stops short of any when-not guidance or naming an alternative tool for overlapping cases, so it is clear context rather than full routing guidance.

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