Skip to main content
Glama

Evaluate Translation Quality

xcomet_evaluate
Read-onlyIdempotent

Analyze translation quality by scoring text from 0-1, detecting errors with severity levels, and generating summaries to evaluate machine or human translations.

Instructions

Evaluate the quality of a translation using xCOMET model.

This tool analyzes a source text and its translation, providing:

  • A quality score between 0 and 1 (higher is better)

  • Detected error spans with severity levels (minor/major/critical)

  • A human-readable quality summary

Args:

  • source (string): Original source text to translate from

  • translation (string): Translated text to evaluate

  • reference (string, optional): Reference translation for comparison

  • source_lang (string, optional): Source language code (ISO 639-1)

  • target_lang (string, optional): Target language code (ISO 639-1)

  • response_format ('json' | 'markdown'): Output format (default: 'json')

Returns: For JSON format: { "score": number, // Quality score 0-1 "errors": [ // Detected errors { "text": string, "start": number, "end": number, "severity": "minor" | "major" | "critical" } ], "summary": string // Human-readable summary }

Examples:

  • Evaluate EN→JA translation quality

  • Check if MT output needs post-editing

  • Compare translation against reference

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sourceYesOriginal source text
translationYesTranslated text to evaluate
referenceNoOptional reference translation for comparison
source_langNoSource language code (ISO 639-1, e.g., 'en', 'ja')
target_langNoTarget language code (ISO 639-1, e.g., 'en', 'ja')
response_formatNoOutput format: 'json' for structured data or 'markdown' for human-readablejson
use_gpuNoUse GPU for inference (faster if available). Default: false (CPU only)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
scoreYesQuality score between 0 and 1
errorsYesDetected error spans
summaryYesHuman-readable quality summary
Behavior4/5

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

The description adds valuable behavioral context beyond annotations. While annotations indicate read-only, non-destructive, and idempotent operations, the description details what the tool provides: quality scores, error spans with severity levels, and human-readable summaries. It also mentions optional reference comparison and output format choices, which are not covered by annotations.

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?

The description is well-structured with clear sections: purpose statement, what it provides, parameters, return format, and examples. It's appropriately sized for a tool with 7 parameters. The front-loaded purpose statement is effective, though the parameter listing could be more concise given the comprehensive schema coverage.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (7 parameters, annotations, output schema), the description is complete. It explains the tool's purpose, what it returns, provides parameter context, includes usage examples, and references the output schema. The combination of description, annotations, and structured data provides comprehensive information for an agent to use this tool correctly.

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?

With 100% schema description coverage, the schema already documents all parameters thoroughly. The description lists parameters in the 'Args' section but adds minimal semantic value beyond what's in the schema. It does clarify that 'reference' is optional and provides context for language codes, but most parameter details are redundant with the schema.

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?

The description clearly states the tool's purpose: 'Evaluate the quality of a translation using xCOMET model.' It specifies the verb (evaluate), resource (translation quality), and method (xCOMET model). It distinguishes from siblings by focusing on comprehensive evaluation rather than batch processing or error detection alone.

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?

The description provides clear context through examples: 'Evaluate EN→JA translation quality,' 'Check if MT output needs post-editing,' and 'Compare translation against reference.' However, it doesn't explicitly state when to use this tool versus its siblings (xcomet_batch_evaluate, xcomet_detect_errors), leaving some ambiguity about tool selection.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/shuji-bonji/xcomet-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server