Skip to main content
Glama

set_segment_target

Update a single segment’s target text in Trados Studio with tag/placeholder validation and undo data, helping prevent formatting errors before QA.

Instructions

[WRITE] Safely update a single segment's target text (with tag/placeholder validation and undo data).

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": {
      "target": "<target>"
    },
    "name": "set_segment_target"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNo
numberNo
statusNoTranslated
targetYes
strict_qaNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full load. It usefully discloses the write nature ('[WRITE]'), that tag/placeholder validation occurs, and that undo data is produced, which is real behavioral value. It does not say what happens when validation fails, how strict_qa changes behavior, or whether the write is applied atomically.

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?

A single sentence with the most important signal, the '[WRITE]' marker, front-loaded. Nothing is wasted, though the parenthetical packs three distinct claims into one clause rather than separating them.

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

Completeness3/5

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

An output schema exists, so return values need no explanation, and the '[WRITE]' tag plus validation/undo note covers the basics. However, with zero annotation coverage and five undocumented parameters, an agent still lacks guidance on how to select the segment (id vs number) and what strict_qa will reject.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across five parameters, so the description must compensate and largely does not. It clarifies that 'target' is the new target text and hints that tag/placeholder validation relates to strict_qa, but it says nothing about the id-vs-number selector, the status enum default of 'Translated', or what strict_qa=true actually enforces.

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 description states a specific verb and resource: 'update a single segment's target text.' The word 'single' implicitly contrasts with batch_set_targets and clear_target, though no sibling is named outright. An agent can tell what the tool does without opening the schema.

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?

'Single segment' implies usage for one-at-a-time edits rather than bulk operations, but the description never says when to prefer this over batch_set_targets or set_segment_status, nor what prerequisites exist. Usage must be inferred from the scope word alone.

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