Skip to main content
Glama

Translate the text in an image

translate_image
Read-only

Translate text inside product images from an image URL while preserving fonts, colors, and layout; returns the translated image.

Instructions

Replace the text inside a product image with a translation, keeping fonts, colours and layout. Give the image as a URL. Returns the translated image.

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": {
      "image_url": "<image_url>",
      "source_language": "<source_language>",
      "target_language": "<target_language>"
    },
    "name": "translate_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
fontNoA font name from supported fonts. Default Pretendard.
image_urlYesAn http(s) URL of a JPEG, PNG or WebP image.
source_languageYesThe language of the text in the image, or auto.
target_languageYesThe language to translate into, e.g. ko, en, ja, zh-CN.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.1
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observedv0.1.1

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already carry readOnlyHint=true and openWorldHint=true, so the safety profile is structured. The description adds useful behaviour beyond that—formatting is preserved and an image is returned—but says nothing about limits, failure modes if no text is found, or processing latency.

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?

Three short sentences, front-loaded with the core action and the output; nothing is padding.

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?

The lack of an output schema is offset by the explicit statement that a translated image is returned, and all parameters are covered. A note on unsupported images or language-pair constraints would complete it.

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 four parameters are documented in the schema; baseline is 3. The description only restates that the image is supplied as a URL and does not clarify the unusual source_language enum values (ch, japan, chinese_cht) or the target_language format beyond what the schema gives.

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: replacing in-image text with a translation, while preserving fonts, colours and layout. The two siblings (search_docs, execute) are unrelated, so no differentiation is needed for an agent to pick this tool.

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?

"Give the image as a URL" implies usage but there is no explicit when-to-use framing, no prerequisites, and no exclusions such as supported image content or language pairs.

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