Skip to main content
Glama

Switch Duolingo Course

duolingo_switch_course
Idempotent

Switch the authenticated Duolingo user's active course to another enrolled language so course-specific topics, skills, and words can be read. Changes the account until switched back.

Instructions

Switches the authenticated user's active course to another language course they are enrolled in. Duolingo returns topics, skills and words only for the active course, so switch first to read another one with the topic tools. This changes the account: the Duolingo apps and website continue with the new course. Switching back undoes it. Find the courses with duolingo_get_courses. Call it only when the user asks to switch or agrees to it. Returns the new active course.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "language_abbr": "<language_abbr>"
    },
    "name": "duolingo_switch_course"
  }
}

Input Schema

NameRequiredDescriptionDefault
from_languageNoLanguage the course is taught in (e.g. 'en'). Only needed when the user learns the language from more than one language.
language_abbrYesLanguage to switch to (e.g. 'es' for Spanish).
response_formatNoOutput format: 'markdown' or 'json'.markdown

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.2.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations declare readOnly=false, idempotent=true, destructive=false, but do not explain what actually changes. The description adds that the change propagates to the Duolingo apps and website, that switching back undoes it, and what the call returns — real behavioral context beyond structured fields.

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

Conciseness5/5

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

Five short sentences, front-loaded with the action, then rationale, then side effects, then sourcing and permission gate, then return value. No filler or repetition of the schema.

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

Completeness5/5

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

For a three-parameter mutation with no output schema, the description covers motivation, prerequisites, account-wide side effects, reversibility, consent requirements, and the return value. Nothing an agent needs to decide to call it is missing.

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

Parameters3/5

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

Schema coverage is 100%, so all three parameters including 'from_language' disambiguation and the response_format enum are documented in the schema itself. The description adds little parameter-specific meaning beyond noting the target is a course the user is enrolled in; baseline 3 applies.

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 ('Switches the authenticated user's active course to another language course they are enrolled in') with scope qualifiers. It also implicitly distinguishes itself from the read-only topic tools by explaining that those return data only for the active course.

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

Usage Guidelines5/5

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

Gives explicit when-to-use (before reading topics of another course), a precondition source ('Find the courses with duolingo_get_courses'), and an explicit permission gate ('Call it only when the user asks to switch or agrees to it'). It also names the general alternative behavior without overstepping into unverified siblings.

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