Skip to main content
Glama

Translate a PDF keeping its layout

translate_pdf

Translate a PDF from a URL while preserving the original layout — formulas, figures and two-column academic typesetting stay intact, unlike ordinary translators that flatten the document. Returns a job_id; poll check_job for the download links (translated-only and bilingual side-by-side). Typically 20-60 seconds for a few pages. Powered by PDFMathTranslate (36k stars) hosted at AI NetCafé. Example — tools/call translate_pdf {"url":"","target":"zh"} → poll check_job

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesDirect URL to the PDF (e.g. an arXiv PDF link).
pagesNoHow much to translate. first = 1 page, first5 = first 5 pages (default), all = whole document (slow and expensive).
lang_toNoTarget language, e.g. "Simplified Chinese", "Japanese". Default Simplified Chinese.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
job_idYes
statusYes
poll_interval_secondsNo

TDQS

A4.2/5.0
Behavior4/5

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

Despite all annotations being false (which carry little meaning), the description discloses key behavioral traits: it is asynchronous (returns a job_id to poll), provides runtime expectations ('Typically 20-60 seconds'), mentions the underlying engine (PDFMathTranslate) and host (AI NetCafé), and notes the output includes translated-only and bilingual side-by-side downloads. This goes well beyond the annotations, though it omits failure modes or data retention details.

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?

The description is concise and well-structured: purpose/benefit (sentence 1), output and next step (sentence 2), performance (sentence 3), and provider/example (sentence 4). Every sentence adds distinct value, and the information is front-loaded with the primary purpose first.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given that an output schema exists and the input schema is complete, the description covers the essential runtime workflow: it tells the agent to return a job_id and poll check_job for downloads, describes the two output types, and gives a realistic time estimate. The addition of an example and the tool's provenance make it sufficiently complete for an agent to invoke and follow up correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema already documents all three parameters with 100% coverage, so the baseline is 3. However, the description contains a concrete example that uses 'target' instead of the schema's 'lang_to' ('"target":"zh"'), which directly conflicts with the parameter naming and could mislead an agent. This active misinformation drops the score below baseline.

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 description clearly states the tool's purpose: 'Translate a PDF from a URL while preserving the original layout' with specific detail about formulas, figures, and two-column academic typesetting. It distinguishes itself from 'ordinary translators that flatten the document' and from sibling tools like translate_text and translate_srt by focusing on PDFs and layout preservation.

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?

The description explains when this tool is appropriate (when preserving layout matters, e.g., academic papers) and how to use it: returns a job_id and instructs to poll check_job. It also sets expectations with the example and typical runtime. However, it does not explicitly list exclusions like 'use translate_text for plain text' or 'use translate_srt for subtitles', so it stops short of full alternatives guidance.

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.

TDQS

A4.3/5.0
Disambiguation5/5

Each tool targets a distinct resource or action: plain text, PDF, SRT, JSON, grammar checking, and job polling. There is no meaningful overlap, and the descriptions explicitly call out when to use one over another (e.g., translate_text vs translate_pdf).

Naming Consistency5/5

All tools follow a clear verb_noun pattern in lowercase snake_case: check_grammar, check_job, translate_i18n_json, translate_pdf, translate_srt, translate_text. The two verbs (check_ and translate_) correspond to their functional groups, making the naming predictable and easy to navigate.

Tool Count5/5

Six tools is a well-scoped count for a translation-focused server. Each tool has a distinct purpose and earns its place; the set is neither bloated nor too thin.

Completeness4/5

The surface covers the core translation formats (text, PDF, subtitles, i18n JSON) plus async job status and grammar checking. Minor gaps exist, such as support for other document formats (e.g., DOCX) or a language-list endpoint, but these are not essential to the apparent purpose.