Skip to main content
Glama

Change the language of a presentation

set_language

Say which language the texts of a presentation you may edit are written in, when the site guessed it wrong (all its texts are Russian, but it was made English). Every text, slide name and the title is put right: where a translation into the new language exists, it becomes the text and the text becomes the translation into the old language; texts that are in the new language already stay; the ones that are in neither are listed as "untranslated". Returns the counts and what is still to translate.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
langYesThe language the texts are written in.
slugYesThe presentation's slug (its address: /movie/<slug>/).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
keptNoTexts that were in the language already.
langYes
swappedNoTexts whose translation became the text.
untranslatedNoTexts in neither language.
previous_langNo
untranslated_blocksNoThe first of those blocks.
missing_translationsNoWhat is not translated yet into the other languages of the site (add it): the first ones; "missing_translations_count" says how many there are.
missing_translations_countNoHow many texts are not translated yet.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already disclose readOnly=false, destructive=false and idempotent=false, and the description goes well beyond them. It explains exactly what happens to existing texts: translations are swapped, already-correct texts stay, and untranslated ones are listed. It also notes that counts and remaining translations are returned, giving strong behavioral context for a mutation tool.

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 front-loaded with the trigger condition and then explains the effects in a logical sequence. It is somewhat verbose and contains a parenthetical example that lengthens it, but every sentence contributes useful semantics for a complex mutation. It avoids repetition and unnecessary fields.

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?

An output schema exists, so the description need not detail return values, though it briefly mentions counts and untranslated items. Given the mutation's complexity, it covers what is changed and when to use it. The main remaining gap is that it does not reference the related translate_presentation sibling or other alternatives.

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%, and both parameters have descriptions in the schema. The description adds little parameter-level detail beyond what the schema already provides, so the baseline for high coverage is appropriate. It does not, for example, clarify slug format or the lang enum beyond the schema.

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 states a specific verb and resource: declaring/repairing the language of a presentation's texts, slide names and title. It clearly distinguishes the operation from a simple metadata update by explaining the translation-swapping behavior. It does not explicitly name sibling tools such as translate_presentation, so sibling differentiation is helpful but not explicit.

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?

It gives a clear condition for use: 'when the site guessed it wrong.' That is a concrete trigger and implies the tool is for correcting an incorrect language guess rather than general translation. It does not name an alternative or state when not to use it, so it falls just short of full routing guidance.

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