Skip to main content
Glama

Quarterslot

Convert to PDF

convert_to_pdf

Render Markdown or HTML to a print-ready PDF (Letter or A4). JavaScript off, no network: use inline data: images. ($0.004) Returns the file as an embedded resource (base64).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "convert_to_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
htmlNoHTML fragment or full document (send this or markdown)
titleNoDocument title; also used for the file name
markdownNoGitHub-flavored Markdown (send this or html)
page_sizeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden and does well: it discloses the sandbox limits (JavaScript off, no network), the workaround (inline data: images), the cost ($0.004), and how the artifact is returned (embedded resource, base64). It omits error/failure behavior and any size limits, which keeps it short of a 5.

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

Conciseness4/5

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

Three tight sentences, front-loaded with what the tool produces. The telegraphic style ('JavaScript off, no network: use inline data: images') and the parenthetical cost are slightly compressed but every clause carries information.

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?

There is no output schema and no annotations, so the description usefully explains the return shape (embedded base64 resource) and the rendering constraints. For a 4-parameter conversion tool this is nearly sufficient; only failure modes and input-size expectations are absent.

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 coverage is 75%, so the schema already documents the html/markdown/title fields and the page_size enum. The description mostly restates those (Markdown/HTML, Letter or A4) rather than adding new meaning such as default page size or what happens when both html and markdown are supplied.

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 ('Render') and resource ('print-ready PDF') plus accepted inputs (Markdown or HTML) and page sizes, which cleanly separates it from the convert_to_docx/convert_to_pptx siblings without needing to name them. An agent can tell exactly what this produces.

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?

Gives concrete usage context: supply either HTML or Markdown, pick Letter or A4, and prepare content that survives with JavaScript off and no network by inlining data: images. It does not explicitly say when to pick this over convert_to_docx, but the output-format framing makes the choice clear.

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