Tool Summary
| Tool | Purpose | Key Parameters |
|---|---|---|
generate_pdf | Create PDF from template | templateId, data |
html_to_pdf | Convert HTML to PDF | html, pdfParams |
check_pdf_status | Check async PDF status | requestId |
list_templates | List all templates | — |
get_template | Get template details | templateId |
get_template_schema | Get template variables | templateId |
create_template_with_ai | Create template with AI | displayName, prompt |
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.The unique identifier of the template to use. Get this from
list_templates or the pdf noodle dashboard.Object containing the template variables. Must match the schema returned by
get_template_schema. Example: {"customerName": "John Doe", "invoiceNumber": "INV-001", "items": [...]}Return a PNG image instead of PDF. Useful for previews or social media.
PDF metadata object. Example:
{"title": "Invoice", "author": "Company Name", "subject": "Invoice #123", "keywords": "invoice, billing"}Hide header and footer on the first page. Useful for title pages.
URL expiration time in seconds. Default is 1 hour (3600 seconds).
S3 bucket ID for storing the output file. Requires S3 integration. If provided,
s3_key must also be specified.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.Complete HTML content to render as PDF. Should include DOCTYPE, html, head, and body tags with proper CSS for print.
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}Return a PNG image instead of PDF.
PDF metadata object. Example:
{"title": "Report", "author": "Author Name", "subject": "Subject", "keywords": "keyword1, keyword2"}Hide header/footer on the first page.
URL expiration time in seconds. Default is 1 hour (3600 seconds).
S3 bucket ID for storage. Requires S3 integration. If provided,
s3_key must also be specified.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.The request ID returned from a queued PDF generation.
| Status | Meaning |
|---|---|
SUCCESS | PDF is ready, download URL provided |
ONGOING | Still processing, check again shortly |
FAILED | Generation failed, try again |
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.The unique ID of the template to retrieve.
| Status | Meaning |
|---|---|
COMPLETED | Template is ready to use |
ONGOING | Template is still being created |
FAILED | Template creation failed |
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.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.Human-readable name for the template (e.g., “Invoice Template”, “Meeting Notes”).
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
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.