Skip to main content
Glama

Sats4AI - Bitcoin-Powered AI Tools

translate_text

Translate text across 119 languages. Requires create_payment with toolName='translate_text', prompt (the text to translate) and targetLanguage (the same value you send here). Without targetLanguage the payment buys the standard engine: when it does not cover the better engine a language routes to, the standard engine translates the text, and the answer says so in note. The target language picks the engine: GPT-OSS 120B by default, or a higher-scoring model (Gemini) where one measurably beats it. Auto-detects source language. Privacy-preserving: no data stored. Pricing: 1 sat per 1,000 characters on the standard engine, minimum 1 sat per request; a routed language costs more. GET /api/languages returns the exact price, engine and measured chrF for every language, and the 402 always quotes the real amount before you pay. Supported languages: Afrikaans, Albanian, Amharic, Arabic, Armenian, Assamese, Azerbaijani, Basque, Belarusian, Bengali, Bosnian, Bulgarian, Burmese, Catalan, Cebuano, Chichewa, Chinese (Simplified), Chinese (Traditional), Corsican, Croatian, Czech, Danish, Dari, Dutch, English, Esperanto, Estonian, Farsi, Fijian, Filipino, Finnish, French, Frisian, Galician, Georgian, German, Greek, Guarani, Gujarati, Haitian Creole, Hausa, Hawaiian, Hebrew, Hindi, Hmong, Hungarian, Icelandic, Igbo, Indonesian, Irish, Italian, Japanese, Javanese, Kannada, Kazakh, Khmer, Kinyarwanda, Korean, Kurdish, Kyrgyz, Lao, Latvian, Lingala, Lithuanian, Luganda, Luxembourgish, Macedonian, Malagasy, Malay, Malayalam, Maltese, Maori, Marathi, Mongolian, Nepali, Norwegian, Occitan, Odia, Pashto, Polish, Portuguese, Punjabi, Romanian, Romansh, Russian, Samoan, Scots Gaelic, Serbian, Sesotho, Setswana, Shona, Sindhi, Sinhala, Slovak, Slovenian, Somali, Spanish, Sundanese, Swahili, Swedish, Tajik, Tamil, Tatar, Telugu, Thai, Tigrinya, Tongan, Turkish, Turkmen, Ukrainian, Urdu, Uzbek, Vietnamese, Welsh, Wolof, Xhosa, Yiddish, Yoruba, Zulu.

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": {
      "paymentId": "<paymentId>",
      "text": "<text>",
      "targetLanguage": "<targetLanguage>"
    },
    "name": "translate_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesText to translate
modelIdNoOptional. Leave it out: the target language picks the engine and the price.
paymentIdYesValid payment ID (must be paid)
sourceLanguageNoSource language (auto-detected if omitted). NOTE: only checked for being a known language, not against your text — a wrong but valid value (e.g. 'German' for Spanish text) is accepted and silently mistranslates with no error. Omit it to let auto-detect work.
targetLanguageYesTarget language — English name ('Spanish', 'Chinese (Simplified)') or ISO-639 code / locale tag ('es', 'pt-BR'). 119 supported; full list at the GET /api/l402/translate-text endpoint.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / modelId / description
      Previous value: -"Optional. Translation model is selected automatically."New value: +"Optional. Leave it out: the target language picks the engine and the price."
  2. Changed3 schema fields changed
    • removedInput schema / properties / sourceLanguage / enum
      Removed value: -[
      -  "Afrikaans",
      -  "Albanian",
      -  "Amharic",
      -  "Arabic",
      -  "Armenian",
      -  "Assamese",
      -  "Azerbaijani",
      -  "Basque",
      -  "Belarusian",
      -  "Bengali",
      -  "Bosnian",
      -  "Bulgarian",
      -  "Burmese",
      -  "Catalan",
      -  "Cebuano",
      -  "Chichewa",
      -  "Chinese (Simplified)",
      -  "Chinese (Traditional)",
      -  "Corsican",
      -  "Croatian",
      -  "Czech",
      -  "Danish",
      -  "Dari",
      -  "Dutch",
      -  "English",
      -  "Esperanto",
      -  "Estonian",
      -  "Farsi",
      -  "Fijian",
      -  "Filipino",
      -  "Finnish",
      -  "French",
      -  "Frisian",
      -  "Galician",
      -  "Georgian",
      -  "German",
      -  "Greek",
      -  "Guarani",
      -  "Gujarati",
      -  "Haitian Creole",
      -  "Hausa",
      -  "Hawaiian",
      -  "Hebrew",
      -  "Hindi",
      -  "Hmong",
      -  "Hungarian",
      -  "Icelandic",
      -  "Igbo",
      -  "Indonesian",
      -  "Irish",
      -  "Italian",
      -  "Japanese",
      -  "Javanese",
      -  "Kannada",
      -  "Kazakh",
      -  "Khmer",
      -  "Kinyarwanda",
      -  "Korean",
      -  "Kurdish",
      -  "Kyrgyz",
      -  "Lao",
      -  "Latvian",
      -  "Lingala",
      -  "Lithuanian",
      -  "Luganda",
      -  "Luxembourgish",
      -  "Macedonian",
      -  "Malagasy",
      -  "Malay",
      -  "Malayalam",
      -  "Maltese",
      -  "Maori",
      -  "Marathi",
      -  "Mongolian",
      -  "Nepali",
      -  "Norwegian",
      -  "Occitan",
      -  "Odia",
      -  "Pashto",
      -  "Polish",
      -  "Portuguese",
      -  "Punjabi",
      -  "Romanian",
      -  "Romansh",
      -  "Russian",
      -  "Samoan",
      -  "Scots Gaelic",
      -  "Serbian",
      -  "Sesotho",
      -  "Setswana",
      -  "Shona",
      -  "Sindhi",
      -  "Sinhala",
      -  "Slovak",
      -  "Slovenian",
      -  "Somali",
      -  "Spanish",
      -  "Sundanese",
      -  "Swahili",
      -  "Swedish",
      -  "Tajik",
      -  "Tamil",
      -  "Tatar",
      -  "Telugu",
      -  "Thai",
      -  "Tigrinya",
      -  "Tongan",
      -  "Turkish",
      -  "Turkmen",
      -  "Ukrainian",
      -  "Urdu",
      -  "Uzbek",
      -  "Vietnamese",
      -  "Welsh",
      -  "Wolof",
      -  "Xhosa",
      -  "Yiddish",
      -  "Yoruba",
      -  "Zulu"
      -]
    • changedInput schema / properties / targetLanguage / description
      Previous value: -"Target language (e.g., 'Spanish', 'French', 'Japanese')"New value: +"Target language — English name ('Spanish', 'Chinese (Simplified)') or ISO-639 code / locale tag ('es', 'pt-BR'). 119 supported; full list at the GET /api/l402/translate-text endpoint."
    • removedInput schema / properties / targetLanguage / enum
      Removed value: -[
      -  "Afrikaans",
      -  "Albanian",
      -  "Amharic",
      -  "Arabic",
      -  "Armenian",
      -  "Assamese",
      -  "Azerbaijani",
      -  "Basque",
      -  "Belarusian",
      -  "Bengali",
      -  "Bosnian",
      -  "Bulgarian",
      -  "Burmese",
      -  "Catalan",
      -  "Cebuano",
      -  "Chichewa",
      -  "Chinese (Simplified)",
      -  "Chinese (Traditional)",
      -  "Corsican",
      -  "Croatian",
      -  "Czech",
      -  "Danish",
      -  "Dari",
      -  "Dutch",
      -  "English",
      -  "Esperanto",
      -  "Estonian",
      -  "Farsi",
      -  "Fijian",
      -  "Filipino",
      -  "Finnish",
      -  "French",
      -  "Frisian",
      -  "Galician",
      -  "Georgian",
      -  "German",
      -  "Greek",
      -  "Guarani",
      -  "Gujarati",
      -  "Haitian Creole",
      -  "Hausa",
      -  "Hawaiian",
      -  "Hebrew",
      -  "Hindi",
      -  "Hmong",
      -  "Hungarian",
      -  "Icelandic",
      -  "Igbo",
      -  "Indonesian",
      -  "Irish",
      -  "Italian",
      -  "Japanese",
      -  "Javanese",
      -  "Kannada",
      -  "Kazakh",
      -  "Khmer",
      -  "Kinyarwanda",
      -  "Korean",
      -  "Kurdish",
      -  "Kyrgyz",
      -  "Lao",
      -  "Latvian",
      -  "Lingala",
      -  "Lithuanian",
      -  "Luganda",
      -  "Luxembourgish",
      -  "Macedonian",
      -  "Malagasy",
      -  "Malay",
      -  "Malayalam",
      -  "Maltese",
      -  "Maori",
      -  "Marathi",
      -  "Mongolian",
      -  "Nepali",
      -  "Norwegian",
      -  "Occitan",
      -  "Odia",
      -  "Pashto",
      -  "Polish",
      -  "Portuguese",
      -  "Punjabi",
      -  "Romanian",
      -  "Romansh",
      -  "Russian",
      -  "Samoan",
      -  "Scots Gaelic",
      -  "Serbian",
      -  "Sesotho",
      -  "Setswana",
      -  "Shona",
      -  "Sindhi",
      -  "Sinhala",
      -  "Slovak",
      -  "Slovenian",
      -  "Somali",
      -  "Spanish",
      -  "Sundanese",
      -  "Swahili",
      -  "Swedish",
      -  "Tajik",
      -  "Tamil",
      -  "Tatar",
      -  "Telugu",
      -  "Thai",
      -  "Tigrinya",
      -  "Tongan",
      -  "Turkish",
      -  "Turkmen",
      -  "Ukrainian",
      -  "Urdu",
      -  "Uzbek",
      -  "Vietnamese",
      -  "Welsh",
      -  "Wolof",
      -  "Xhosa",
      -  "Yiddish",
      -  "Yoruba",
      -  "Zulu"
      -]
  3. First observed

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden and does so: it discloses the payment gate, per-request pricing (1 sat per 1,000 chars, 1 sat minimum, higher for routed languages), that the 402 quotes the real amount before charging, that a `note` in the response flags standard-engine fallback, and that no data is stored. These are exactly the operational facts an agent needs before spending money.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The front-loaded material (purpose, payment prerequisite, engine selection, pricing) is excellent and well ordered, but roughly half the text is a 119-item language enumeration that duplicates the schema's pointer to GET /api/languages and the endpoint's own list. That block is payload, not guidance, and dilutes an otherwise tight definition.

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?

No output schema exists, so the description steps in by naming the `note` field and the 402 behaviour, and it covers pricing, engine selection, privacy and language support. Minor residual gaps: how to obtain/verify the paymentId (check_payment_status, await_result) is left implicit, though the required-parameter schema labels it 'must be paid'.

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?

Schema coverage is 100%, so baseline is 3, but the description adds real meaning: targetLanguage must equal the value passed to create_payment, omitting it buys the standard engine, modelId should be omitted, and sourceLanguage is auto-detected. This is genuine coordination logic the schema alone does not convey.

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?

Opens with a specific verb and resource ('Translate text across 119 languages') and immediately scopes the operation further by describing engine routing (GPT-OSS 120B by default, Gemini where it measurably wins). An agent knows exactly what the tool does without opening the schema.

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?

Gives an explicit prerequisite chain: create_payment must be called first with toolName='translate_text', and targetLanguage must match the value sent here. It also tells the agent to leave modelId out so the language picks the engine. It does not explicitly route against near-neighbours such as translate_epub or translate_rare_language, which keeps it from a 5.

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.