Skip to main content
Glama
JWhist
by JWhist

render

Convert Markdown or HTML content to PDF with customizable templates, page size, margins, and orientation. Provides a signed download URL valid for 15 minutes.

Instructions

Convert Markdown or HTML to a PDF. Returns a signed download URL valid for 15 minutes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
markdownNoMarkdown content to render (GFM supported)
htmlNoRaw HTML content to render. Alternative to markdown.
templateNoBuilt-in template name to apply for styling (e.g. "invoice"). Use render_template instead if you want to inject structured data.
filenameNoName of the stored PDF file (e.g. "invoice-123.pdf"). Defaults to "render.pdf".
formatNoPage sizeA4
landscapeNoLandscape orientation
margin_topNoTop margin as a CSS length (e.g. "1in", "20mm"). Defaults to "1in".
margin_rightNoRight margin. Defaults to "1in".
margin_bottomNoBottom margin. Defaults to "1in".
margin_leftNoLeft margin. Defaults to "1in".
Behavior3/5

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

No annotations are provided, so the description carries the burden. It discloses the output (signed URL, 15-min validity) and the conversion action. However, it does not clarify side effects, idempotency, or authentication needs, leaving gaps for an agent.

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: one for purpose and one for output. Every word earns its place. No fluff or redundancy.

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?

Given 10 parameters and no output schema, the description covers the core transformation and output nature. However, it lacks context about sibling tools or template usage, which would help the agent decide when to use this over render_template.

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 100%, so baseline is 3. The description does not add new parameter semantics beyond what the schema already provides (e.g., 'Markdown or HTML' is already in property descriptions).

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 clearly states 'Convert Markdown or HTML to a PDF', specifying the verb and resource. It also mentions the output is a signed download URL, but does not explicitly distinguish from sibling tools like render_template, which is a minor gap.

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 description implies when to use (when converting Markdown or HTML to PDF) but provides no explicit guidance on when not to use or alternatives. The sibling tool render_template is hinted in the schema but not in the description.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/JWhist/docrenders-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server