Skip to main content
Glama

Fix a QA failure’s translation

edit_translation
Destructive

Put a corrected translation of the string an open QA failure is on into the run’s Edit set, in that failure’s language: one edit covers every place the string appears, and replaces an edit of that string already there. Nothing changes until apply_edit_set, which applies everyone’s edits and starts a Reconciliation (it costs credits); its QA re-checks the edited strings. Fix translations here, never in the repository: its translated files are Globalize’s output. Refused QA_FINDING_NOT_FOUND, QA_FINDING_NOT_OPEN (dismissed — undismiss_qa_failures reopens it — or the string passes the check now), JOB_SUPERSEDED (a newer run of the Workflow replaced this one), JOB_NOT_EDITABLE or SOURCE_STRING_EDIT_PENDING (its Source string has an edit waiting). When referring to a project or language in your reply to the user, use its name and locale (e.g. "French (fr-FR)") — ids (UUIDs) are for tool calls only, never show them to the user.

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": {
      "runId": "<runId>",
      "qaFailureId": "<qaFailureId>",
      "text": "<text>"
    },
    "name": "edit_translation"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe string’s corrected translation, placeholders and markup included
runIdYesRun id, from get_workflow_run or list_workflow_runs
qaFailureIdYesAn open QA failure, from list_run_qa_failures

Output Schema

NameRequiredDescriptionDefault
editIdYesThe edit in the Edit set: what discard_edit takes
removedTargetEditsYesAlways 0: only a Source string edit removes translation edits

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond destructiveHint=true: it discloses that the edit is staged (nothing changes until apply_edit_set), that applying costs credits and triggers a Reconciliation plus a QA re-check, and that a new edit replaces an existing edit for the same string. It also enumerates concrete refusal conditions (QA_FINDING_NOT_FOUND, QA_FINDING_NOT_OPEN, JOB_SUPERSEDED, JOB_NOT_EDITABLE, SOURCE_STRING_EDIT_PENDING), which is exactly the context annotations cannot carry.

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 action and its staging consequence are front-loaded, and the refusal list is compact. It is dense but nearly every clause carries operational meaning; the closing instruction about showing names/locales instead of UUIDs is tangential to invoking this tool and adds a little bulk.

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?

For a three-parameter staging mutation with an output schema, the description covers the prerequisite (an open QA failure from list_run_qa_failures), the effect on existing edits, the deferred commit, cost, and failure modes. Nothing needed to call it correctly is missing.

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% and each parameter already documents its source (runId from get_workflow_run/list_workflow_runs, qaFailureId from list_run_qa_failures, text with placeholders and markup). The description adds only the string+language keying semantics via 'one edit covers every place the string appears', so baseline 3 is right.

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?

States a specific verb and resource: put a corrected translation of the string an open QA failure is on into the run's Edit set, in that failure's language. It distinguishes itself from edit_source_string (Source side), apply_edit_set (the apply step), and discard_edit without requiring the agent to open any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly says to fix translations here and never in the repository because translated files are Globalize's output, and names apply_edit_set as the gating step. The refusal codes double as when-not-to-use conditions, and undismiss_qa_failures is named as the recovery path for a dismissed finding.

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.