Skip to main content
Glama

gather_text_for_target

Destructive

Collect source text into an Unreal localization target's manifest and archive files by generating and running its GatherText configuration for translation preparation.

Instructions

Gather text into a localization target's manifest/archive files, by generating its GatherText commandlet config (LocalizationConfigurationScript::GenerateGatherTextConfigFile) and running it in-process (UGatherTextCommandlet::Execute) -- the same pipeline the Localization Dashboard's "Gather Text" button drives.

Returns: { target_name: string, scope: string, config_path: string, config_written: bool, exit_code: int, success: bool, message: string }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scopeNoOptional: "engine" | "game". Disambiguates a same-named target in both sets; defaults to searching both.
target_nameYesRequired. Target name, as listed by list_localization_targets.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=true, so the write/mutation nature is covered structurally. The description adds real context beyond that: it writes a config file, runs a commandlet in-process, and returns exit_code/success/message. It does not, however, explain what makes it destructive (overwriting existing manifest/archive entries), which would be the key missing detail.

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?

Purpose is front-loaded in the first sentence, and the implementation detail is secondary. The explicit Returns line is justified because there is no output schema. Slightly dense with internal symbol names but no wasted sentences.

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?

With no output schema, the description helpfully supplies the return shape, and it characterizes the operation as a multi-step commandlet run. It is nearly complete for a mutation tool, missing only an explicit statement of what data may be overwritten when gathering.

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 100%, so both parameters are fully documented in the schema (scope disambiguation, target_name sourcing from list_localization_targets). The description adds no parameter meaning beyond what the schema already provides, so the baseline 3 applies.

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 ('Gather text into a localization target's manifest/archive files') and names the underlying pipeline (GenerateGatherTextConfigFile + UGatherTextCommandlet::Execute), which clearly distinguishes it from siblings like compile_text_for_target. An agent can tell exactly what operation this performs.

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?

The 'Localization Dashboard's Gather Text button' analogy gives implied context for when this runs, and target_name is tied to list_localization_targets. However, there is no explicit when-to-use/when-not guidance or mention of the adjacent compile_text_for_target step that typically follows gathering.

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

Deploy Server

Other Tools