Skip to main content
Glama

TextUnited MCP Server

docprocessor_wait_for_convert_batch

Waits while uploaded files are being converted. Call after all file upload PUT requests have succeeded. Supports optional MCP Task execution when requested by the client; otherwise waits within this tool call. Returns input_required immediately if no files are registered. Only status completed permits translate_convert_batch; failed means no file succeeded. Report failedFiles even when other files succeeded. Prefer this tool to repeatedly calling get_convert_batch_status.

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": {
      "documentBatchId": "<documentBatchId>"
    },
    "name": "docprocessor_wait_for_convert_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
documentBatchIdYesdocumentBatchId returned by create_convert_batch_upload after its file has been uploaded.

Output Schema

NameRequiredDescriptionDefault
statusNoAggregate state: input_required means no file is registered yet; working means at least one file is processing; completed means no file is processing and at least one succeeded; failed means every file failed. Start translation only for completed.
messageNoHuman-readable summary of the aggregate status.
failedFilesNoFiles that failed preprocessing and must not be sent to translation.
documentBatchIdNoThe batch identifier supplied to get_convert_batch_status or wait_for_convert_batch.
successfulFilesNoNames of successfully converted files, not file IDs. Wait for aggregate status completed before starting translation of the batch.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full load and does well: it discloses dual execution modes (MCP Task vs. in-call wait), an early-return path (input_required when no files are registered), and partial-failure reporting ('report failedFiles even when other files succeeded'). The notable gap is that no wait duration, timeout, or polling cadence is stated, so an agent cannot anticipate blocking behavior.

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?

Front-loaded with purpose, then operational preconditions, then status semantics — every sentence carries distinct information. The telegraphic phrasing ('failed means no file succeeded') is efficient but occasionally compressed enough to require a second read.

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 an async batch-wait tool with an output schema available, the description covers invocation timing, task-mode behavior, early return, and result interpretation including the failedFiles caveat. The main omission is temporal behavior — how long it waits and what happens on timeout — which matters for a blocking call.

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 100% and the single parameter already documents its own provenance from create_convert_batch_upload, so the baseline is 3. The description adds no formatting or identity details about documentBatchId beyond what the schema states.

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?

The opening line states a specific verb and resource ('waits while uploaded files are being converted') and scopes it to the upload-to-conversion handoff. It is clearly distinguishable from get_convert_batch_status, which it explicitly names, and from translate_convert_batch, which it gates.

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

Usage Guidelines5/5

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

It states the trigger condition ('call after all file upload PUT requests have succeeded'), the preferred alternative ('prefer this tool to repeatedly calling get_convert_batch_status'), and the downstream condition ('only status completed permits translate_convert_batch; failed means no file succeeded'). Both when and when-not are covered.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources