Skip to main content
Glama

backtranslate_eval

Evaluate translation quality by back-translating the output with a different model and measuring word-level gloss overlap with the original source text.

Instructions

Evaluate a translation via back-translation and gloss overlap.

Translates the output back to the source language using a different model, then computes word-level gloss overlap with the original text. This is the most powerful non-circular quality metric for translation: original → translate → back-translate → overlap.

Returns the back-translation, overlap score (0.0-1.0), matching/missing/extra glosses, and the model used for back-translation.

Args: text: Original source-language text (e.g. "father, head of household") translation: The translated text to evaluate (e.g. "Vater, Haupt eines Haushalts") source_lang: Source language name (e.g. "English") target_lang: Target language name (e.g. "German") back_model_id: Specific model for back-translation (default: auto-select different model) min_tier: Minimum quality tier for auto-selection (default "A") free_only: Only use free models (default false) max_tokens: Max response tokens (default 512) exclude_providers: Do not back-translate on these hosts (the producer) exclude_model_ids: Do not use these model ids

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>",
      "translation": "<translation>",
      "source_lang": "<source_lang>",
      "target_lang": "<target_lang>"
    },
    "name": "backtranslate_eval"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
min_tierNoA
free_onlyNo
max_tokensNo
source_langYes
target_langYes
translationYes
back_model_idNo
exclude_model_idsNo
exclude_providersNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.15.1
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / exclude_model_ids
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Exclude Model Ids"
      +}
    • addedInput schema / properties / exclude_providers
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Exclude Providers"
      +}
  2. First observedv0.7.0

TDQS

A3.7/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 explains the multi-model back-translation step, that a different model is auto-selected by default, the min_tier/free_only selection constraints, and that exclude_providers prevents evaluating on the producing host. What it omits is the practical cost dimension — this triggers external model calls and likely consumes credits — plus any latency or failure behavior.

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?

Front-loaded with purpose, then mechanism, then return values, then a clean Args list — well structured and easy to scan. The 'most powerful non-circular quality metric' line is slightly promotional, and restating return values is redundant given an output schema exists, but neither wastes much space.

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 10-parameter tool with 0% schema coverage and no annotations, the description supplies nearly everything needed to call it correctly: inputs, defaults, model-selection controls, and output shape. The missing pieces are cost/credit implications and valid min_tier values, which matter for an API-backed evaluation call.

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 0% across 10 parameters, so the description must compensate, and it does document each parameter's meaning with examples and defaults. Gaps remain: min_tier's valid tier values are never enumerated (and the schema has no enum), back_model_id's identifier format is unspecified, and max_tokens' effect on truncation is unstated.

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 opening line names a specific verb and resource ('Evaluate a translation via back-translation and gloss overlap') and the mechanism sentence spells out the pipeline, so the agent knows exactly what operation this performs. It does not explicitly distinguish itself from sibling tools such as 'evaluate' or 'judge', leaving the differentiation to the phrase 'most powerful non-circular quality metric'.

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 is implied by the claim that this is the 'most powerful non-circular quality metric for translation', which signals when the tool is valuable. However, there is no explicit when-not guidance and no named alternative (e.g. the plain 'evaluate' or 'judge' sibling) for cheaper or circular evaluation, so the agent must infer the trade-off.

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