# Rendlet PDF

> HTML or JSON templates (invoice, itinerary) to PDF. Free plan: 100 documents/month.

- name: com.rendlet/pdf
- version: 0.2.0
- connection class: R1 (autonomous)
- trust: 83/100 flags: no-repository
- quality: 81/100 (new)
- owner: not claimed
- descriptor: https://api.protogrid.dev/v1/servers/com.rendlet%2Fpdf
- tools: https://api.protogrid.dev/v1/servers/com.rendlet%2Fpdf/tools

**An agent can connect on its own if it already holds `PDF_TOKEN`.** Remote endpoint behind a static API key or header. The registry never sees the value; the agent fills the placeholder.

## Connection (mcpServers)

```json
{
  "mcpServers": {
    "pdf": {
      "type": "http",
      "url": "https://rendlet.com/mcp",
      "headers": {
        "Authorization": "Bearer ${PDF_TOKEN}"
      }
    }
  }
}
```

Placeholders to fill: `${PDF_TOKEN}`.

## Trust

- hygiene: 80
- liveness: 100
- freshness: 100
- provenance: 55
- drivers: +dns-namespace +website +reachable +uptime-100% +updated-1d-ago -no-repository
- Derived from observable signals (official registry feed and our own credential-free probes); no code audit performed.

## Quality 81/100 (new)

### protocol: 75 (weight 25)

- warn `protocol.modern`: newest supported version is 2025-06-18; 2026-07-28 not supported, older versions are deprecated until 2027-07-28
- n/a `protocol.stateless`: only applies to 2026-07-28 servers
- pass `protocol.transport`: streamable HTTP
- n/a `protocol.list_ttl`: only applies to 2026-07-28 servers

### authorization: n/a (weight 15)

- n/a `auth.prm`, `auth.as_metadata`, `auth.cimd`: no remote uses OAuth
- n/a `auth.secret_in_url`: no templated URL

### tool hygiene: 86 (weight 30)

- pass `tools.descriptions`: every tool has a description
- pass `tools.description_length`: descriptions are concise
- pass `tools.schemas`: every tool has an object input schema
- pass `tools.annotations`: 5 of 5 tools declare readOnlyHint or destructiveHint
- fail `tools.directory_hints`: no tool declares all four of readOnlyHint, destructiveHint, idempotentHint and openWorldHint; missing: html_to_pdf (destructiveHint, idempotentHint); render_template (destructiveHint, idempotentHint); get_pricing (destructiveHint, idempotentHint); …
- pass `tools.token_cost`: about 795 tokens to load every tool
- pass `tools.api_dump`: tools are not a one-to-one API dump

### stability: n/a (weight 15)

- n/a `stability.changes`, `stability.rug_pull`: tool history recorded for 1 of the 7 days needed

### dependencies: n/a (weight 15)

- n/a `deps.known_vulns`, `deps.mcp_sdk_version`, `deps.resolvable`: no npm or PyPI package

- tools: 5, about 795 tokens to load them all
- tool set hash: 2795de16300a3a3713a54bb55470df22
- tools last changed: 2026-10-18T15:05:21.297Z
- badge: [![protogrid quality](https://protogrid.dev/badge/com.rendlet/pdf.svg)](https://protogrid.dev/servers/com.rendlet/pdf)
- Checks run on what our credential-free, read-only probes observe; tools are never called and no code audit is performed.

### Tool changes

- 2026-10-18 `render_template` changed (description) **meaning changed**
  - before: Render JSON data into a PDF using a built-in template: "invoice" (seller, buyer, items, tax_rate, currency) or "itinerary" (trip, days). Call GET https://rendlet.com/v1/templates for full example payloads. Counts as one document against your plan.
  - after: Use when you have structured data for an invoice or travel itinerary and want a clean PDF without writing HTML. Inputs: "template" ("invoice": seller, buyer, items, tax_rate, currency; "itinerary": trip, days), "data" (object; full examples at GET https://rendlet.com/v1/templates), "filename". Output: the PDF as an embedded base64 resource plus pages and remaining quota. Same auth and 402 behaviour as html_to_pdf. Cost: 1 document from your monthly plan, or 1 prepaid credit after the cap.
- 2026-10-18 `html_to_pdf` changed (description) **meaning changed**
  - before: Render an HTML string to a PDF with headless Chromium. Returns the PDF as an embedded base64 resource. Counts as one document against your Rendlet plan (Free: 100/month). JavaScript is disabled; only data: URIs and public https assets load. Simplified Chinese supported.
  - after: Use to produce a real, full-quality PDF from HTML (reports, receipts, letters). Inputs: "html" (required), "format" (A4|Letter|Legal|A3|A5), "landscape", "margin" (CSS length), "filename". Rendered by headless Chromium with JavaScript disabled; only data: URIs and public https assets load; Chinese text supported. Output: the PDF as an embedded base64 resource plus pages, bytes and remaining quota. Requires "Authorization: Bearer <key>" (or "sandbox" for a watermarked 1-page trial, 5/day). Without a usable key it returns a 402 payment_required result with buy links. Cost: 1 document from your monthly plan (free key: 100/month), or 1 prepaid credit after the cap.
- 2026-10-18 `preview_pdf` added
  - Use to show what a document will look like before paying or signing up. Inputs: optional "html" (string, up to 50 KB; omit to preview the built-in sample invoice). Output: a 1-page low-resolution, PREVIEW-watermarked PDF (rasterized first A4 page) as an embedded base64 resource. Not for production use. Cost: free, no key, 3 previews per IP per day.
- 2026-10-18 `get_pricing` added
  - Use when the user asks about price, hits a quota, or needs more documents. Inputs: none. Output: JSON with the free key, monthly plans with Stripe links, prepaid credit packs with Stripe Payment Links, the USDC-on-Base purchase endpoint and steps, and the cost of each tool. Cost: free, no key.
- 2026-10-18 `list_capabilities` added
  - Use first to learn what Rendlet can render and which tools are free. Inputs: none. Output: JSON listing tools, input modes (HTML, built-in invoice/itinerary templates), page sizes, limits per plan, auth method and links. Cost: free, no key.

Full history: https://api.protogrid.dev/v1/servers/com.rendlet%2Fpdf/changes

## Remotes

- https://rendlet.com/mcp (streamable-http, auth api_key ${PDF_TOKEN}, reachable true, uptime30d 1)

## Packages

_none_

## Tools (5)

- `get_pricing`: Use when the user asks about price, hits a quota, or needs more documents. Inputs: none. Output: JSON with the free key, monthly plans with Stripe links, prepaid credit packs with Stripe Payment Links, the USDC-on-Base purchase endpoint and steps, and the cost of each tool. Cost: free, no key.
- `html_to_pdf`: Use to produce a real, full-quality PDF from HTML (reports, receipts, letters). Inputs: "html" (required), "format" (A4|Letter|Legal|A3|A5), "landscape", "margin" (CSS length), "filename". Rendered by headless Chromium with JavaScript disabled; only data: URIs and public https assets load; Chinese text supported. Output: the PDF as an embedded base64 resource plus pages, bytes and remaining quota. Requires "Authorization: Bearer <key>" (or "sandbox" for a watermarked 1-page trial, 5/day). Without a usable key it returns a 402 payment_required result with buy links. Cost: 1 document from your monthly plan (free key: 100/month), or 1 prepaid credit after the cap.
- `list_capabilities`: Use first to learn what Rendlet can render and which tools are free. Inputs: none. Output: JSON listing tools, input modes (HTML, built-in invoice/itinerary templates), page sizes, limits per plan, auth method and links. Cost: free, no key.
- `preview_pdf`: Use to show what a document will look like before paying or signing up. Inputs: optional "html" (string, up to 50 KB; omit to preview the built-in sample invoice). Output: a 1-page low-resolution, PREVIEW-watermarked PDF (rasterized first A4 page) as an embedded base64 resource. Not for production use. Cost: free, no key, 3 previews per IP per day.
- `render_template`: Use when you have structured data for an invoice or travel itinerary and want a clean PDF without writing HTML. Inputs: "template" ("invoice": seller, buyer, items, tax_rate, currency; "itinerary": trip, days), "data" (object; full examples at GET https://rendlet.com/v1/templates), "filename". Output: the PDF as an embedded base64 resource plus pages and remaining quota. Same auth and 402 behaviour as html_to_pdf. Cost: 1 document from your monthly plan, or 1 prepaid credit after the cap.
