Skip to main content
Glama

Create a PDF from Markdown

apitemplate_create_pdf_from_markdown

WRITE: renders one PDF from Markdown (Jinja2 placeholders like {{lang}} are filled from data) and returns the hosted download_url (never the file bytes). COST: uses 1 generation of your APITemplate.io plan quota per call (see apitemplate_get_account). Do not retry or repeat it unless needed; every call is counted. POST /v2/create-pdf-from-markdown (export_type=json).

Input Schema

NameRequiredDescriptionDefault
cssNoCSS including the <style> tag.
bodyYesMarkdown text; may use Jinja2 syntax such as {{lang}}.
dataNoValues for the placeholders in body.
metaNoYour own reference id for this file; it shows up in apitemplate_list_objects.
filenameNoCustom file name ending in .pdf (default: a random UUID).
settingsNoPDF print settings.
expirationNoMinutes until the hosted file expires: 0 = keep permanently (default), or 1-10080.
generation_delayNoMilliseconds to wait before rendering (0-30000), for pages that load content late.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false and openWorldHint=true, but the description adds materially more: the return is a hosted download_url and never the raw bytes, the call consumes one plan generation (pointing to apitemplate_get_account), and repeats are counted. This is exactly the non-obvious behavior an agent needs before invoking a billed write.

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 front-loaded, labeled sentences (WRITE, COST, endpoint) with no filler; the operation, cost model, and API path each earn their place. Nothing is restated from the schema or annotations.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, so the description correctly fills that gap by naming the return (hosted download_url, not bytes). Combined with cost, retry, and endpoint disclosure for a tool with a deep nested settings object, an agent has everything needed to call it correctly and safely.

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%, so the baseline is 3, but the description adds a meaningful semantic link: Jinja2 placeholders in 'body' such as {{lang}} are resolved from 'data', clarifying how two separate parameters interoperate. It doesn't add detail on the settings/expiration knobs, which the schema already covers.

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 ('renders one PDF') and resource ('from Markdown'), with the 'from Markdown' scope inherently distinguishing it from the sibling create_pdf_from_html and create_pdf_from_url. It also names the mechanism (Jinja2 placeholders) so an agent knows exactly what input style is expected.

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 clear operational context: it's a WRITE, it costs 1 generation of quota, and it should not be retried or repeated unless needed. It does not explicitly route the agent to alternatives (e.g. use create_pdf_from_html for HTML), so sibling selection is left to the name rather than spelled out.

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.