Skip to main content
Glama

get_active_document

Retrieve metadata, file name, dirty state, and segment counts for the active Trados Studio Editor document, so you can inspect the open file before acting on it.

Instructions

[READ] Return metadata, file name, dirty flag, and segment counts for the active Editor document.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the burden, and it does reasonable work: the '[READ]' prefix declares a non-mutating operation and the mention of a 'dirty flag' tells the agent it can detect unsaved changes. It stops short of stating behavior when no document is open (error vs. empty result), which would matter for an unannotated tool.

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 compact sentence, front-loaded with the '[READ]' safety marker and then the payload, with no redundant or filler wording. Every clause names something the caller gets back.

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?

An output schema exists, so return values need not be explained in prose, and the description still summarizes the key fields. For a zero-parameter read tool this is nearly complete; only the no-active-document failure mode is unaddressed.

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 no parameter semantics to explain and the baseline applies. Nothing in the description misleads about inputs.

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 ('Return') and a specific resource ('the active Editor document'), and enumerates the returned payload (metadata, file name, dirty flag, segment counts). This is clearly distinguishable from siblings like get_active_project and get_active_segment, which target different active objects.

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 phrase 'the active Editor document' implies the calling context (a document must be open in the Editor), but there is no explicit when-to-use statement, no exclusions, and no pointer to alternatives such as get_document_statistics or check_document. Usage is inferable rather than stated.

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