Skip to main content
Glama

Get Duolingo Language Abbreviation

duolingo_get_abbreviation_of
Read-onlyIdempotent

Converts a full language name into its Duolingo abbreviation, limited to languages the specified or authenticated user is currently learning.

Instructions

Convert a full language name to its abbreviation. Only works for languages the given user is currently learning.

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_name": "<language_name>"
    },
    "name": "duolingo_get_abbreviation_of"
  }
}

Input Schema

NameRequiredDescriptionDefault
usernameNoDuolingo username to query. Defaults to the authenticated user. Use this to look up another user's public data.
language_nameYesFull language name to look up (e.g. 'French', 'Spanish').

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so safety is covered. The description adds meaningful behavioral context beyond them: the lookup is scoped to the user's currently-learning set, so the agent knows a valid language can still return nothing.

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?

Two sentences, no filler: the core conversion is stated first, the limiting condition second. Nothing is repeated from the name or title and every sentence carries information.

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 small two-parameter read-only lookup this covers purpose, direction, and the main failure condition. The only gap is that there is no output schema, so the description could note what the abbreviation looks like (e.g., a short code such as 'fr').

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?

With 100% schema coverage the baseline is 3, and the description earns one more by constraining language_name to full names drawn from the user's active courses rather than arbitrary language names. The username parameter's cross-user behavior is left to the schema, which already documents it.

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?

"Convert a full language name to its abbreviation" states a specific verb, the source resource (full name) and the output (abbreviation), which is exactly the direction needed to tell it apart from the inverse sibling duolingo_get_language_from_abbr. The follow-up sentence narrows scope to languages the given user is currently learning.

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 second sentence gives a real precondition: it only works for languages the user is currently learning, which tells the agent when this tool will fail. It stops short of naming an alternative (e.g., duolingo_get_languages) for listing all languages when that precondition does not hold.

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