Skip to main content
Glama

Pressmark

Preview Document as PNG

preview_document
Read-onlyIdempotent

Statelessly render a 144-PPI PNG preview of a document as a Base64 data URI without mutating server records. Example: preview_document({"doc_type":"invoice","from":{"name":"Acme"},"to":{"name":"Client"}})

Input Schema

NameRequiredDescriptionDefault
toYesRecipient, buyer, client, or tenant details.
fromYesIssuer, seller, landlord, or service provider details.
itemsNoBillable line items, milestones, rent schedules, or fee breakdowns.
notesNoCustomer-facing notes or remittance instructions.
termsNoPayment terms, late fee policy, or legal clauses.
themeNoVisual typography and color theme preset.
titleNoCustom document heading override (e.g., 'TAX INVOICE').
countyNoCounty name for notarial jurat and recording cover header (e.g., 'Hamilton').
is_paidNoMarks the document PAID IN FULL.
currencyNoISO 4217 currency code or symbol (default 'USD'; supports EUR, GBP, CAD, AUD, JPY, CHF).USD
doc_typeYesDocument archetype across 57 commercial, legal, and real estate templates (e.g., invoice, residential_lease).
due_dateNoPayment due or expiration date (YYYY-MM-DD).
sectionsNoStructured legal clauses or terms sections.
tax_rateNoPercentage tax rate applied to subtotal (e.g., 8.25).
doc_numberNoUnique document identifier (e.g., 'INV-2026-0042'); auto-generated when omitted.
issue_dateNoDocument issue date (YYYY-MM-DD).
recordableNoApplies County Recorder 3-inch top margin header and official stamp reserve.
signaturesNoMulti-party signature blocks.
state_codeNo2-letter US state or DC code (e.g., 'TN', 'CA', 'NY') for 50-state statutory clauses.
year_builtNoProperty construction year (< 1978 triggers Federal Lead-Based Paint disclosure).
date_formatNoDate rendering format.
municipalityNoMunicipal sub-profile ('Chicago', 'Cook County', 'New York City', 'San Francisco', 'Seattle', 'Portland').
payment_linkNoHTTPS checkout URL embedded as a link and vector QR code.
unit_measureNoUnit suffix for quantities (e.g., 'hrs', 'mo', 'RSF').
custom_fieldsNoCustom key-value metadata fields.
primary_colorNoCustom primary brand hex color (e.g., '#4f46e5').
execution_modeNoExecution and signature mode.
compliance_modeNoRegulatory compliance notice banner.
discount_amountNoFlat document-level discount subtracted before grand total.
notary_requiredNoRenders a state-specific Notarial Acknowledgment and Jurat block.
number_decimalsNoDecimal places for formatted amounts (default 2).
payment_qr_codeNoEmbeds a vector SVG QR code when payment_link is provided.
currency_placementNoPlace currency symbol/code before or after amounts.
lease_package_modeNoAppends mandatory state statutory attachment sheets and move-in checklist.
currency_separatorsNoThousands and decimal separator style.
include_clerk_stampNoReserves a County Clerk recording stamp zone on wet-ink jurats.
currency_symbol_modeNoDisplay currency symbol ('$') or ISO code ('USD').

Output Schema

NameRequiredDescriptionDefault
image_data_uriYesBase64 PNG data URI (data:image/png;base64,...).
compile_time_msYesRaster preview latency in milliseconds.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the description doesn't need to re-argue safety. It does add genuinely new behavioral facts: output resolution (144 PPI), output encoding (Base64 data URI), and the stateless no-persistence contract. Rate limits and size limits for large documents are not mentioned, which keeps it off 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.

Conciseness5/5

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

Two sentences, front-loaded with the operation and output format, with the example placed last where it aids rather than delays comprehension. No filler or restatement of the tool name.

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?

An output schema exists, so return-value structure need not be explained, and the description still usefully names the Base64 PNG form. Annotations cover the safety profile. The remaining gap is workflow context: with 37 overlapping parameters shared across generate_document and convert_document, the description should say when a preview is preferred over a generated file.

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 100%, so all 37 parameters are already documented with per-field descriptions and 8 enums. The description contributes only a single example call exercising doc_type, from, and to; it adds no guidance on interaction between the many optional formatting flags. Baseline 3 applies when the schema carries the load.

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?

States a concrete verb and output artifact: render a 144-PPI PNG preview as a Base64 data URI, statelessly. That is far more specific than the title alone. However, it never names or contrasts itself with generate_document or convert_document, which share the same 37-parameter payload, so an agent cannot tell from the description which of the three to pick.

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 phrase 'statelessly ... without mutating server records' implies this is the read-only preview path versus a persisting generate step, and the inline example shows a minimal valid call. But there is no explicit when-to-use/when-not-to-use statement and no mention of the sibling generate_document or convert_document, leaving the routing decision to inference.

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.