Skip to main content
Glama

PDF Efforts

DjVu to PDF

djvu_to_pdf
Idempotent

Convert a bundled DjVu document (scanned book) to PDF with DjVuLibre, keeping its hidden text layer as searchable text when present.

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": {
      "file": "<file>"
    },
    "name": "djvu_to_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesThe .djvu file.

Output Schema

NameRequiredDescriptionDefault
infoNoFacts about the PDF (get_pdf_info) or the result (e.g. target_met for compress_pdf).
noteNoAnything the user should know about the result.
textNoExtracted text (pdf_to_text, ocr_pdf).
filesYesResult files. Download them before expires_at; pass file_id to another tool to chain.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=true, openWorldHint=true), so the bar is lower. The description still adds genuine behavioral context beyond them: it names the DjVuLibre engine and discloses the conditional output trait that a hidden text layer is preserved as searchable text when present, which materially affects whether the produced PDF meets the caller's needs.

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 sentence with zero filler, front-loading the conversion action and then the output-fidelity caveat. Nothing is repeated from the schema or annotations.

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?

The tool is simple (one required nested parameter) and has an output schema, so return values need not be described. The description covers what the operation does and how the output's text layer behaves, leaving only failure modes and processing limits unstated, which is a modest gap rather than a blocking one.

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 description coverage is 100%, with each nested file field (url, base64, file_id, filename) already documented in the schema, including the private-address refusal and the 60-minute file_id lifetime. The description adds no parameter-level meaning beyond the schema, so the baseline of 3 applies; 'bundled DjVu document' only vaguely gestures at the input.

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 names a specific verb (convert) and a precise resource pair (DjVu document to PDF), and adds the useful qualifier that the input is a scanned book with a hidden text layer. It distinguishes itself from format-specific siblings such as images_to_pdf or office_to_pdf by the input format alone, but it never states that routing rule explicitly.

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 only implied: an agent infers it should call this when the source file is DjVu. There is no explicit when-to-use statement, no mention of the alternative tools (e.g. pdf_to_text if the goal is extraction rather than conversion), and no stated preconditions such as size limits or expected processing time.

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