Skip to main content
Glama

Translate Layouts

translate_layouts
Destructive

Translates screenshot-layout text into requested languages while preserving composition and language-specific images. Requires an existing source layout. Re-running a target language re-syncs its design from the source and can replace manual target-language design tweaks. Subject to translation allowances.

Input Schema

NameRequiredDescriptionDefault
layoutsNoWhich layout sizes to translate. Defaults to ['mobile', 'tablet']. Include 'desktop' only if the project has a desktop layout.
projectIdNoAlias of generationId (the project id).
variantIdNoVariant to translate. If omitted, uses the active variant.
generationIdNoProject id: the same UUID as projectId from list_projects/get_project (generationId is its legacy name). You may pass projectId instead. The project/generation UUID.
targetLanguagesYesArray of target language codes (e.g. ['en', 'ja', 'de']). Use el for Greek (el-GR), he for Hebrew (iw-IL), fil for Filipino, or for Odia, pa for Punjabi. The source language is auto-detected and excluded.

Output Schema

NameRequiredDescriptionDefault
dataNo
errorNo
messageNo
successYes
widgetDataJsonNo

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?

The annotations already declare destructiveHint=true and idempotentHint=false, but the description adds important specifics: rerunning a target language re-syncs its design from the source and can replace manual target-language design tweaks. It also notes translation allowances, giving useful quota/constraint context beyond the annotations.

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?

Four short sentences, front-loaded with the core action and then the key prerequisite and destructive rerun caveat. Every sentence contributes useful information with no repetition.

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?

Given the rich schema, existing output schema, and annotations, the description is largely complete: it covers the source-layout prerequisite, destructive re-sync behavior, and allowance constraints. It does not explain how the source layout is identified beyond the schema's project/variant parameters, but that is minor.

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 schema itself documents defaults, aliases, variant behavior, and language-code guidance. The description refers to 'requested languages' but adds no parameter-level detail beyond what the schema already provides, so the baseline of 3 applies.

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 names a specific action (translates), resource (screenshot-layout text), and scope (requested languages while preserving composition and language-specific images). It distinguishes itself from generic translation siblings by focusing on layouts, though it does not name a specific sibling alternative.

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?

It states the prerequisite of an existing source layout and describes rerun behavior, which gives useful usage context. However, it does not explicitly say when to choose this tool over translate_graphics, translate_store_listing, apply_locale_screenshots, or other translation siblings.

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.