Skip to main content
pdf noodle MCP provides 7 tools organized into two categories: PDF Generation and Template Management. This reference documents each tool’s parameters, behavior, and usage examples.
You don’t need to memorize tool names or parameters. Simply describe what you want in natural language, and the AI will select the appropriate tool automatically.

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.
Example Prompts:

html_to_pdf

Convert HTML content directly to a PDF document. This tool provides full control over the document structure and styling.
For best results with html_to_pdf, follow the PDF Best Practices guidelines. Poorly structured HTML can result in broken layouts and awkward page breaks.
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 with top, right, bottom, left (e.g., {"top": "40px", "right": "40px", "bottom": "40px", "left": "40px"})
  • printBackground (boolean): Include CSS backgrounds and colors
  • landscape (boolean): Landscape orientation
  • displayHeaderFooter (boolean): Show header/footer
  • headerTemplate (string): HTML template for page headers
  • footerTemplate (string): HTML template for page footers
Example: {"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.
Recommended PDF Parameters:
Example Prompts:
Using the PDF Best Practices Skill: For complex documents, instruct the AI to use the pdf-best-practices skill first:
When you reference /pdf-best-practices or ask the AI to follow the pdf-best-practices skill, the AI will automatically apply proper CSS rules for page breaks, margins, table formatting, and print-optimized styling.

check_pdf_status

Check the status of an asynchronous PDF generation request.
string
required
The request ID returned from a queued PDF generation.
Response States: 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.
Returns: Template name, ID, and status (COMPLETED, ONGOING, or FAILED). Status Values:
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.
Example Prompts:

get_template_schema

Retrieve the variables and schema required by a template.
string
required
The ID of the template to get the schema for.
Returns: Object describing all template variables and their structure. The schema shows the exact data structure needed for the data parameter in generate_pdf. Example Prompts:
Use this tool before generate_pdf to understand exactly what data a template expects. The AI will format your data correctly based on the schema.

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.
Example Prompts:
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