Tool Summary
PDF Generation Tools
These tools create PDF documents from templates or raw HTML.generate_pdf
Generate a PDF document using a saved template and dynamic data.string
required
The unique identifier of the template to use. Get this from
list_templates or the pdf noodle dashboard.object
required
Object containing the template variables. Must match the schema returned by
get_template_schema. Example: {"customerName": "John Doe", "invoiceNumber": "INV-001", "items": [...]}boolean
default:"false"
Return a PNG image instead of PDF. Useful for previews or social media.
object
PDF metadata object. Example:
{"title": "Invoice", "author": "Company Name", "subject": "Invoice #123", "keywords": "invoice, billing"}boolean
default:"false"
Hide header and footer on the first page. Useful for title pages.
number
default:"3600"
URL expiration time in seconds. Default is 1 hour (3600 seconds).
string
S3 bucket ID for storing the output file. Requires S3 integration. If provided,
s3_key must also be specified.string
S3 path/key for the output file (e.g., “invoices/2024/inv-001”). Only used when
s3_bucket is provided.html_to_pdf
Convert HTML content directly to a PDF document. This tool provides full control over the document structure and styling.string
required
Complete HTML content to render as PDF. Should include DOCTYPE, html, head, and body tags with proper CSS for print.
object
PDF formatting options object. Properties:
format(string): Paper size - “A4”, “Letter”, “Legal”, etc.margin(object): Page margins withtop,right,bottom,left(e.g.,{"top": "40px", "right": "40px", "bottom": "40px", "left": "40px"})printBackground(boolean): Include CSS backgrounds and colorslandscape(boolean): Landscape orientationdisplayHeaderFooter(boolean): Show header/footerheaderTemplate(string): HTML template for page headersfooterTemplate(string): HTML template for page footers
{"format": "A4", "margin": {"top": "40px", "right": "40px", "bottom": "40px", "left": "40px"}, "printBackground": true}boolean
default:"false"
Return a PNG image instead of PDF.
object
PDF metadata object. Example:
{"title": "Report", "author": "Author Name", "subject": "Subject", "keywords": "keyword1, keyword2"}boolean
default:"false"
Hide header/footer on the first page.
number
default:"3600"
URL expiration time in seconds. Default is 1 hour (3600 seconds).
string
S3 bucket ID for storage. Requires S3 integration. If provided,
s3_key must also be specified.string
S3 path/key for the output file (e.g., “reports/2024/report.pdf”). Only used when
s3_bucket is provided.check_pdf_status
Check the status of an asynchronous PDF generation request.string
required
The request ID returned from a queued PDF generation.
Example Prompt:
Most PDF generations complete synchronously. This tool is only needed for large or complex documents that are queued for background processing.
Template Management Tools
These tools help you work with reusable PDF templates.list_templates
Retrieve all PDF templates in your account. This tool has no parameters. Returns: A list of templates with their display names and IDs. Example Prompts:get_template
Fetch details of a specific template including its status.string
required
The unique ID of the template to retrieve.
The status field is only relevant when you’ve created a template using
create_template_with_ai via MCP or the API. Template creation typically takes 1-2 minutes. Use this tool to check if your new template is ready.get_template_schema
Retrieve the variables and schema required by a template.string
required
The ID of the template to get the schema for.
data parameter in generate_pdf.
Example Prompts:
create_template_with_ai
Create a new reusable PDF template using AI from a natural language description.string
required
Human-readable name for the template (e.g., “Invoice Template”, “Meeting Notes”).
string
required
Detailed description of the template design, layout, and fields. Be specific about:
- Document type and purpose
- Sections and their content
- Data fields that should be variable
- Styling preferences (colors, fonts)
- Any images or logos to include
string
Optional URL to a reference PDF or image for design inspiration. The AI will use this as a reference when creating the template.
Template creation typically takes 1-2 minutes. Use
get_template with the returned ID to check when it’s ready.Best Practices
Use Natural Language
Describe what you want instead of specifying exact parameters. The AI handles the technical details.
Check Schemas First
Use
get_template_schema before generating PDFs to ensure you provide all required data.Follow PDF Guidelines
For
html_to_pdf, review the Best Practices to avoid formatting issues.Be Specific
More detail in your prompts leads to better results, especially for template creation.
Next Steps
Examples
See these tools in action with real prompts
Best Practices
Learn HTML-to-PDF formatting guidelines