Skip to main content
Glama

get_segment_context

Retrieve a segment plus surrounding neighbor segments to inspect context and understand nearby translation content in an active Trados Studio session.

Instructions

[READ] Return a segment (or active segment) with +/- window surrounding neighbor segments.

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_segment_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNo
numberNo
windowNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

No annotations exist, so the description carries the burden; it self-declares '[READ]', which is useful, but it does not say what happens when both id and number are omitted, how id and number interact, or what happens at document boundaries where neighbors do not exist.

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 front-loaded sentence plus a bracketed read tag; nothing is redundant or padded.

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 shape need not be described, but for a 3-parameter tool with zero schema descriptions the definition leaves the id/number selection semantics and out-of-range window behavior unexplained.

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 0%, so the description must compensate; it does clarify that `window` means how many neighbor segments on each side are included, which the bare schema does not, but `id` and `number` are only vaguely gestured at by 'a segment (or active segment)' with no indication they are alternatives or which wins.

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 gives a concrete verb+resource ('Return a segment ... with +/- window surrounding neighbor segments') and adds the '(or active segment)' fallback, which separates it from a plain list like get_segments or a single-segment getter like get_active_segment.

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?

It implies the read/context use case and hints that omitting a selector falls back to the active segment, but it never states when to pick this over get_segments, find_segments, or get_active_segment, and gives no exclusions or preconditions.

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