Skip to main content
Glama

translate

Translates text between 57 languages locally on your GPU via Ollama, auto-starting the model and applying a built-in software glossary for accurate technical terms.

Instructions

Translate text between any of 57 supported languages using TranslateGemma running locally on your GPU via Ollama. Automatically starts Ollama and pulls the model if needed. Includes a built-in software glossary for accurate technical translations.

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": {
      "text": "<text>",
      "from": "<from>",
      "to": "<to>"
    },
    "name": "translate"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesTarget language code or name (e.g., "es", "Spanish", "fr", "French")
fromYesSource language code or name (e.g., "en", "English", "ja", "Japanese")
textYesThe text to translate
modelNoOllama model (default: "translategemma:27b"). Use "translategemma:12b" or "translategemma:4b" for faster, lower-quality output.
glossaryNoCustom term overrides as {"source term": "target translation"}. Merged with the built-in software glossary.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.11.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that inference runs locally on the GPU via Ollama, that Ollama is auto-started and the model auto-pulled if missing (a meaningful first-call latency cost), and that a built-in software glossary is applied. It stops short of stating the return shape, error behavior for invalid language codes, or whether glossary overrides replace versus merge terms.

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 scope, then the operational caveat, then the glossary note. No filler or repetition of the schema.

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 five-parameter translation tool with no output schema and no annotations, the definition covers backend, auto-setup behavior, and glossary handling, which is most of what an agent needs. The gap is the absence of any statement about what is returned or how language-code mismatches fail.

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 every parameter is already documented, which sets the baseline at 3. The description adds only peripheral meaning — the 57-language universe and the existence of the built-in glossary that custom overrides merge into — without new detail on the from/to code formats or model sizing trade-offs.

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 — translating text — plus the scope of 57 languages and the local TranslateGemma/Ollama backend. The word "text" loosely separates it from translate_markdown and translate_readme, but those siblings are never named, so differentiation is implied rather than explicit.

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?

Usage context is implied: this is the plain-text translator, with sibling names suggesting markdown/readme/batch variants exist. There is no explicit statement of when to prefer a sibling, no guidance on unsupported language values, and no prerequisites noted beyond the automatic Ollama/model setup.

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