Skip to main content
Glama

clear_target

Clears target text and resets status to Unspecified for specified segment IDs or the active segment, helping undo target edits and restore an unprocessed translation state.

Instructions

Clear target text and reset status to Unspecified for given segment IDs or the active segment.

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": "clear_target"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/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 burden: it does disclose the destructive effect (target text is cleared) and the resulting status value 'Unspecified', which is genuinely useful. It does not state whether the clear is reversible, whether it requires a confirmed segment or specific project state, or what happens to already-confirmed segments.

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?

One sentence, front-loaded with the action and effect, with the selection mechanism at the end. Nothing is wasted and nothing is buried.

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?

For a one-parameter tool with an output schema, the description covers action, effect, and target selection, which is most of what an agent needs. The remaining gap is failure/edge behavior for the optional IDs argument, which the schema does not cover either.

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?

Schema coverage is 0% and the single `ids` parameter is otherwise undocumented, so the description is doing real work by explaining that omitting IDs targets the active segment. It does not say what happens with an empty array or invalid IDs, keeping it short of a 5.

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 uses a specific verb+resource ('Clear target text') and adds the exact side effect ('reset status to Unspecified'), so the operation is unambiguous. It does not, however, distinguish itself from the semantically adjacent siblings set_segment_target or batch_set_targets.

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?

Usage is implied by the scope clause 'for given segment IDs or the active segment', which tells the agent the two ways it can be applied. There is no explicit when-to-use/when-not guidance and no pointer to the sibling that sets a target instead of clearing it.

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