Skip to main content
Glama

get_active_segment

Retrieve the segment currently focused in Trados Editor with +/-3 neighbor context, TM hits, term hits, and comments to support review and QA.

Instructions

Return the segment currently focused in Trados Editor with +/-3 neighbor context, TM hits, term hits, and comments.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_active_segment"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/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 burden alone; it does disclose the payload shape (+/-3 neighbor context, TM hits, term hits, comments), which is useful behavioral information. It does not state what happens when no segment is focused, whether this requires an open document/project, or whether the call is read-only — the main remaining gaps.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single dense sentence that front-loads the verb and resource, then enumerates the returned components. No filler, no repetition of the title, nothing that wastes a token.

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?

With zero parameters and an output schema present, the description needn't explain return values, yet it does so helpfully. What is missing is the operational edge case (no active segment, no open document) and any hint about how this differs from get_segment_context or check_current_segment, which matters in a 30-tool sibling set.

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

Parameters4/5

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

The tool takes zero parameters, so there is nothing to disambiguate; the schema is trivially complete. Baseline 4 applies, since no parameter explanation is needed or given.

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?

States a specific verb and resource: returns the currently focused segment in Trados Editor, plus the scope of the payload (neighbor context, TM hits, term hits, comments). An agent can tell this is a 'read the focused segment' tool. It does not, however, distinguish itself from near-siblings like get_segment_context or check_current_segment, which is the only thing keeping it from a 5.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance. The phrase 'currently focused' implies a preconditio (an editor session with a segment selected) but the alternatives that fetch segment data by other means are never mentioned or excluded, so the agent must guess which sibling to call.

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