# Documint MCP MCP

> Documint automates document creation right inside your chat flow. It manages complex templates, generates professional PDF files from structured data inputs, and tracks every single generated report or proposal using natural conversation. You'll stop struggling with disconnected systems just to build a simple client invoice.

## Overview
- **Category:** productivity
- **Price:** Free
- **Tags:** document-generation, template-engine, pdf-creation, automation, dynamic-content

## Description

Need to create reports that look exactly the same every time? Documint lets your AI agent handle all of that without you having to touch any backend system. Instead of juggling spreadsheets and dedicated document platforms, you simply ask for it—the generation runs, and you get a file. You can list existing templates, check what data is required for any specific layout, and then trigger the creation instantly using provided variables. If your agent needs to track how many documents were made or if some failed, it handles that too. The whole process flows through Vinkius, meaning you stay in one place while getting access to a massive catalog of tools for everything else your workflow requires.

## Tools

### create_new_generation
Creates and generates a new document file using a specific saved template and data set.

### get_documint_account_metadata
Retrieves usage limits and overall status information for your Documint account.

### get_generation_details
Checks the current processing status and provides a download link for one specific generated document.

### get_template_variable_audit
Identifies and lists the precise data keys required to populate a chosen document template accurately.

### get_template_configuration
Retrieves detailed information, including field schemas, for an entire template type.

### list_documint_generations
Shows a list of all documents that have been successfully generated in your account history.

### list_failed_doc_generations
Identifies and reports on all document generation attempts that failed due to errors.

### list_latest_doc_generations
Shows a list of the most recently created documents in your account history.

### list_documint_templates
Lists every available document template configured within your Documint account.

### search_documint_templates
Searches for document templates using a specific name or keyword.

## Prompt Examples

**Prompt:** 
```
List all available Documint templates.
```

**Response:** 
```
I've found 4 templates in your account, including 'Q3 Sales Proposal', 'Client Onboarding Pack', and 'Event Ticket'. Would you like to see the required variables for the Sales Proposal?
```

**Prompt:** 
```
Generate a new 'Event Ticket' with data: {'guest_name': 'Jane Smith', 'seat': 'A12'}.
```

**Response:** 
```
I've triggered the generation for 'Event Ticket'. The document is being processed. I'll provide the download URL as soon as it's ready. The document ID is 'DOCUMINT-7788'.
```

**Prompt:** 
```
Show me the status of the last 5 generations.
```

**Response:** 
```
Your last 5 generations were all 'Completed' successfully. Documents include: 'Proposal_TechCorp.pdf', 'Ticket_JaneSmith.pdf', and 'Invoice_99.pdf'. Would you like the download links for any of these?
```

## Capabilities

### List and search document templates
You can see every template available in the system or narrow down the list by name.

### Audit required data fields for a template
The tool identifies exactly which pieces of information are needed to fill out any specific document type correctly.

### Generate new documents from data
The system instantly creates a full, formatted PDF using your provided data and selected template.

### Check the status and download link for files
You get real-time updates on a document's processing status and access a direct download URL when it’s ready.

### Review generation history and failures
The agent lists all documents ever created or pinpoints specific runs that failed for troubleshooting.

## Use Cases

### Generating client proposals
A Sales Manager needs to send out a proposal. They ask their agent, and it first checks the templates using `search_documint_templates`. It finds 'Q3 Proposal,' confirms the required variables using `get_template_variable_audit`, collects the necessary sales figures, and triggers `create_new_generation` for the final PDF.

### Auditing billing errors
An Accountant needs to verify if a client received their invoice. They ask the agent to check the status of recent files using `list_latest_doc_generations`. If it's not there, they use `get_generation_details` with the document ID to see if it failed and why.

### Testing new report formats
A Developer wants to test a brand-new template structure. They first run `list_documint_templates` to ensure their current work doesn't conflict with existing setups, then use `get_template_configuration` on the target template before attempting generation.

### Batch processing and compliance checks
An Operations Manager needs a full report of all documents made last month. They run `list_documint_generations`, review the list, and then use `list_failed_doc_generations` to ensure no critical reports were accidentally lost or corrupted.

## Benefits

- Stop manually figuring out what data you need. Use `get_template_variable_audit` to instantly see the required fields for any template, preventing incomplete documents from the start.
- You get full visibility into your document history using `list_documint_generations`. You don't have to jump between tabs just to know if a report ran yesterday or last week.
- Never waste time on failed jobs again. The dedicated tool, `list_failed_doc_generations`, pinpoints exactly which runs broke and why, saving serious troubleshooting time.
- The process is instant. After triggering creation with `create_new_generation`, you don't wait; you immediately use `get_generation_details` to check the status and get the download link when ready.
- It handles complexity by managing templates itself. Instead of just generating a file, your agent uses `list_documint_templates` first so you know what options are even available.

## How It Works

The bottom line is, you talk to your AI client like you're talking to an assistant who already knows where all the templates and data live.

1. Connect your AI client to the Documint MCP via Vinkius and authorize it using your API key.
2. Ask your agent to list available templates or find the variables needed for a specific document type.
3. Provide the necessary data inputs, then ask the agent to trigger the final document creation.

## Frequently Asked Questions

**How do I know what templates Documint has?**
Run `list_documint_templates`. This tool immediately shows every single document type available in your account, so you can see all options right away.

**What is the difference between list_documint_generations and list_latest_doc_generations?**
Use `list_documint_templates` to see every template, but if you want a record of past output, use `list_documint_generations`. If you only care about what happened in the last few minutes, `list_latest_doc_generations` is faster.

**Can I generate a document without knowing all the required variables first?**
No. You should always check with `get_template_variable_audit` before generating. This tool tells you exactly which data keys are missing, saving you from an immediate failure.

**Where can I find out if a generation failed?**
The dedicated `list_failed_doc_generations` tool tracks every document attempt that didn't complete. This lets you review the error logs and fix the underlying data issue.

**I need to check my usage limits; how do I use the `get_documint_account_metadata` tool?**
The `get_documint_account_metadata` tool immediately pulls your account's current status and remaining generation quotas. This lets you monitor your usage before triggering a large batch of documents, preventing unexpected failures due to exceeding limits.

**I don't remember the exact name; can I find templates using `search_documint_templates`?**
Yes, running `search_documint_templates` allows you to locate a template by entering just a keyword or phrase. This is much faster than listing every single document and helps narrow down your search quickly.

**What details do I get when I run the `get_generation_details` tool?**
The `get_generation_details` command returns the specific status (like 'Processing' or 'Completed') and, if ready, a direct download URL for one document. This is crucial for tracking progress on important, single-job outputs.

**Before I call `create_new_generation`, how can I verify the required data structure with `get_template_configuration`?**
Using `get_template_configuration` pulls up the exact field schema and detailed setup for a template. This confirms exactly what variables you must provide to make sure your document generates correctly on the first try.

**How do I get a Documint API Key?**
Log in to your Documint account, navigate to the API section in your account settings, and you can generate or retrieve your unique API Key from there.

**Can the agent show me the variables for a template?**
Yes, you can use the get_template_variable_audit tool to retrieve exactly which data keys are needed to populate a specific template.

**What format are the documents generated in?**
Documint specializes in generating high-quality PDF files from your dynamic HTML or designed templates.