Skip to main content
Glama
hilvana-mcp

hilvana-mcp

Official

Convert Word to PDF

word_to_pdf
Idempotent

Convert a Word .docx file to a new local PDF with selectable text; returns page count and simplification notes without uploading the file.

Instructions

Converts a Word document (.docx) to a NEW PDF on this computer, with real, selectable text. Returns the page count and any simplifications made (e.g. skipped text boxes). Never uploads the file.

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": {
      "path": "<path>"
    },
    "name": "word_to_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoLanguage for the step descriptions and messages.
pathYesThe .docx file, inside an allowed folder.
engineNoWord engine. native: built-in; libreoffice: local LibreOffice install; auto (default): built-in, falling back to LibreOffice if content had to be dropped. All local.
outputNoPath of the new PDF. Defaults to the same name with .pdf.
overwriteNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.16.2

TDQS

A4/5.0
Behavior4/5

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

Goes meaningfully beyond the annotations: it discloses that a brand-new file is created rather than the source being modified, that nothing is uploaded (a privacy guarantee the annotations do not express), and that the response reports page count plus any simplifications. It is silent on failure modes such as an existing target file, password-protected documents, or a missing LibreOffice install for the fallback engine.

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?

Three short clauses with the action front-loaded, followed by the return contract and the privacy guarantee. No filler, and each sentence carries a distinct fact.

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 no output schema, the description correctly compensates by describing the return payload (page count, simplifications). Five parameters at high schema coverage leave little undocumented, but behavior around overwrite and converter failure is left entirely to the caller's inference.

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 80%, so the schema already documents path, output, engine, and lang; the description adds no parameter-level detail such as default naming behavior or what 'simplifications' means per engine. Baseline 3 applies since the schema carries the load, though the mention of skipped text boxes hints at engine trade-offs.

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?

States a specific verb and resource pair ('Converts a Word document (.docx) to a NEW PDF'), names the output format, and adds distinguishing constraints (local-only, real selectable text). An agent can tell this is document conversion rather than inspection or listing, which is what the sibling names imply.

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: the agent must infer that this is the tool for turning .docx input into PDF output. There is no statement of when to prefer this over pdf_inspect/pdf_list, no prerequisites (e.g., an installed Word engine), and no guidance on when not to call it.

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