Skip to main content
Glama

Set current language

set_current_language
Idempotent

Switch the learner's active language pair. Affects every subsequent call that falls back to the profile.

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_pair": "<language_pair>"
    },
    "name": "set_current_language"
  }
}

Input Schema

NameRequiredDescriptionDefault
language_pairYesPair code, e.g. 'en_de'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true and destructiveHint=false, so the mutation and repeat-safety profile is covered. The description adds genuine value beyond them by disclosing the global side effect: this is persistent session/profile state that changes how later calls resolve their language pair.

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 short sentences, zero filler, with the primary action front-loaded and the consequence immediately after it.

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 one-parameter idempotent setter with no output schema and full annotation coverage, this is close to sufficient. The remaining gap is the provenance of valid language-pair codes, which an agent must infer from a sibling tool.

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 description coverage is 100% and the single parameter already carries a format example ('en_de'), so the description adds no meaning beyond it. It does not say where valid pair codes come from or how an invalid code is handled, which is the only semantic an agent might need.

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?

States a specific verb and resource: 'Switch the learner's active language pair.' That clearly contrasts with the read-only sibling list_language_pairs, though the description never names that sibling explicitly.

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

Usage Guidelines3/5

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

Gives the consequence of calling it ('affects every subsequent call that falls back to the profile'), which implies when it matters, but never states when to prefer it over alternatives or that the pair code should come from list_language_pairs first.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources