Skip to main content
Glama
folio-pdf-translate

folio-pdf-translate

by BrotherMou

start_translation

Initiates a PDF translation job and returns a job ID, producing a bilingual PDF with original pages left and translated pages right while preserving formulas and layout.

Instructions

Start a PDF translation; return job_id immediately. The bilingual PDF places original left, translation right.

input_path is an existing local PDF. output_directory receives a new unique task folder; source files are never overwritten. pages accepts 1,3-5; omitted means all pages. The unique deliverable is primary_artifact.path after completion and review. It is null while unfinished or failed. Unselected pages remain untranslated in the output. Selected pages must contain extractable text; scanned/image-only pages require OCR outside this tool. service is a Folio translation provider ID. fields contains provider options. secret_env maps provider credential option names to server environment variable names, never to literal API keys. Default agent requires the calling Agent to fetch pending batches and submit its own translations; no translation API or nested Agent CLI is called. Preserve every item ID and formula/page placeholder. For agent mode omit fields, secret_env and translate_images. Explicit google sends text to Google's service. get_translation_status provides completion, failures and final paths. hover_highlight defaults to true with service=agent: translates individual sentence items, embeds Acrobat hover layers without overlay annotations, and excludes formulas/images. primary_artifact.kind is bilingual_hover_pdf by default, bilingual_pdf only when hover is disabled. primary_artifact.pages records a selected-page translation; null means all pages. artifacts is an internal index retained for compatibility and review, not a delivery list. Keep mono_pdf, plain_dual_pdf and preview PDFs internal unless the user requests an alternate final PDF. Read coverage_report for all source blocks and hover_report for alignment exclusions. Adobe desktop hover and drag-copy require UI testing. Set hover_highlight=false for plain output or external translation services. Review formulas and every source keyword before delivery, including wrapped Keywords/Index terms lists.

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": {
      "input_path": "<input_path>",
      "output_directory": "<output_directory>"
    },
    "name": "start_translation"
  }
}

Input Schema

NameRequiredDescriptionDefault
pagesNo
fieldsNo
serviceNoagent
input_pathYes
secret_envNo
glossary_fileNo
hover_highlightNo
source_languageNoen
target_languageNozh
output_directoryYes
translate_imagesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior5/5

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

With zero annotations the description carries the full burden and does so: source files are never overwritten, the output folder is a new unique task folder, primary_artifact.path is null while unfinished or failed, unselected pages stay untranslated, image-only pages require external OCR, and secret_env maps to server environment variable names rather than literal keys. It also discloses that agent mode calls no translation API or nested CLI and that the caller must fetch and submit batches, plus an explicit caveat that Adobe hover/drag-copy needs UI testing.

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

Conciseness2/5

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

The first sentence is well front-loaded, but the remainder is a paragraph-length wall mixing parameter docs, artifact delivery policy, review instructions and testing caveats with no grouping or structure. Much of it earns its place, but the lack of organization means key facts like pages syntax and secret_env semantics are easy to miss.

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 11-parameter, no-annotation, no-output-schema tool, the description covers return values (job_id, primary_artifact, artifacts index, coverage_report, hover_report), failure semantics and mode behavior. The main omissions are the language parameters and glossary_file, which an agent would have to guess at from names alone.

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 description coverage is 0%, so the description must supply all meaning, and it explains pages syntax ('1,3-5', omitted means all), service as a Folio provider ID, fields as provider options, secret_env indirection, hover_highlight's effect on output kind and behavior, and translate_images' agent-mode exclusion. It leaves source_language, target_language and glossary_file entirely unexplained, which is a real gap across 11 parameters.

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 opening states a specific verb and resource ('Start a PDF translation; return job_id immediately'), which is concrete and identifies the tool's role as the job-launching step. It later distinguishes itself from get_translation_status, which supplies completion and final paths, though the differentiation is buried rather than stated up front.

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

Usage Guidelines4/5

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

It gives explicit conditional guidance: omit fields, secret_env and translate_images in agent mode; set hover_highlight=false for plain output or external services; use get_translation_status for completion; keep mono_pdf, plain_dual_pdf and previews internal unless the user asks. What it lacks is routing against cancel_translation or submit_translations, and it never states when not to use this tool.

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