Skip to main content
Glama

Pressmark

Generate Vector PDF Document

generate_document
Read-onlyIdempotent

Statelessly synthesize a vector PDF document (invoice, receipt, contract, NDA, or lease) in <25ms without mutating server records. Example: generate_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
doc_numberYesAssigned or effective document number.
pdf_base64YesBase64-encoded vector PDF bytes.
grand_totalYesComputed grand total.
compile_time_msYesVector compilation latency in milliseconds.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the non-mutating claim largely restates structured data. However, the description adds genuinely new behavioral facts: statelessness and a <25ms latency expectation, which help an agent decide to call it inline rather than batch.

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?

Two sentences with the core capability front-loaded and a single compact example; nothing is padded. The example is somewhat redundant given a 100%-documented schema, which keeps it from a 5.

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

Completeness3/5

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

An output schema and rich annotations remove the need to describe return values or safety, and the schema fully documents parameters. But for a 37-parameter, 57-archetype tool, the description says nothing about mode interactions or the preview-then-generate workflow, leaving the agent to infer routing from sibling names alone.

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% across all 37 parameters, so the schema carries the semantic load. The inline example pins down the shape of from/to/doc_type, adding marginal value, but there is no explanation of the interactions between parameters (e.g., payment_link with payment_qr_code, or state_code with notary_required).

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 uses a specific verb-plus-resource ('synthesize a vector PDF document') and enumerates concrete archetypes (invoice, receipt, contract, NDA, lease), so an agent knows exactly what is produced. It does not distinguish itself from siblings like preview_document or convert_document, which also deal with documents, so it stops short of a 5.

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 a generation-only, safe-to-call context, but there is no explicit when-to-use or when-not-to-use guidance. It never tells the agent why to pick this over preview_document (dry run?) or convert_document, which is the most likely routing confusion.

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.