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
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| min_tier | No | A | |
| free_only | No | ||
| max_tokens | No | ||
| source_lang | Yes | ||
| target_lang | Yes | ||
| translation | Yes | ||
| back_model_id | No | ||
| exclude_model_ids | No | ||
| exclude_providers | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |