Skip to main content
Glama

PDF Efforts

Word / Excel / PowerPoint to PDF

office_to_pdf
Idempotent

Convert an office document to PDF with LibreOffice: .doc, .docx, .odt, .rtf, .txt, .xls, .xlsx, .ods, .csv, .ppt, .pptx, .odp, .html. The file name (or URL) must have the right extension.

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

Input Schema

NameRequiredDescriptionDefault
fileYesThe document. Give "filename" with the extension when sending base64.

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.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=true and openWorldHint=true, so the mutation/safety profile is covered. The description adds the useful engine detail (LibreOffice) and the extension-matching requirement, but says nothing about failure behavior, size limits, or how long file_id results remain usable — details an agent would need for a conversion service that fetches remote URLs.

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?

Two sentences, front-loaded with the action and the engine, followed by the single hard precondition. The long extension list is dense but every entry is decision-relevant, and there is no filler or repetition of schema text.

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?

With annotations and an output schema present, the description need not explain return values, and it covers the engine, input domain, and the extension constraint. It is slightly thin on the multi-source input model (url vs base64 vs file_id), which the schema carries, and on error conditions for remote fetches.

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 100% and the nested file object is well documented, so the baseline would be 3. The description adds real meaning beyond the schema by enumerating the accepted extensions and stating that the filename or URL must carry a correct extension, which tells the agent how type detection actually succeeds or fails.

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?

States a specific verb (convert) and resource (office document to PDF) and enumerates the accepted input extensions, which makes the direction of conversion unambiguous against reverse-direction siblings like pdf_to_word and pdf_to_excel. It stops short of naming any sibling explicitly, so it lands at 4 rather than 5.

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?

The accepted extension list implies when this tool applies (office/text/HTML sources, not PDFs), and the second sentence gives a precondition about matching extensions. There is no explicit statement of when to prefer a different tool or what to do with already-PDF input, so guidance is implied rather than stated.

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