> ## Documentation Index
> Fetch the complete documentation index at: https://mcp.klark.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Documents

> 6 outils — Templates et génération de documents

## list\_templates

`Lecture seule`

List available document templates (global + personal)

<ParamField body="page" type="number" default="1">
  Page number
</ParamField>

<ParamField body="limit" type="number" default="20">
  Items per page (max 50)
</ParamField>

<ParamField body="category" type="string">
  Filter by category — Valeurs : contract | invoice | letter | legal | other
</ParamField>

<ParamField body="search" type="string">
  Search by template name
</ParamField>

## get\_template

`Lecture seule`

Get a specific template with its fields/variables

<ParamField body="templateId" type="string" required>
  The template ID
</ParamField>

## generate\_document

`Écriture`

Generate a document from a template by filling in the required fields

<ParamField body="templateId" type="string" required>
  The template ID to generate from
</ParamField>

<ParamField body="filledData" type="object" required>
  Key-value pairs for template variables
</ParamField>

## list\_documents

`Lecture seule`

List generated documents

<ParamField body="page" type="number" default="1">
  Page number
</ParamField>

<ParamField body="limit" type="number" default="20">
  Items per page (max 50)
</ParamField>

<ParamField body="templateId" type="string">
  Filter by source template ID
</ParamField>

## get\_document

`Lecture seule`

Get a specific generated document with its download URL

<ParamField body="documentId" type="string" required>
  The document ID
</ParamField>

## analyze\_template

`Lecture seule`

Analyze a template to discover its variables, validation errors, and recommendations

<ParamField body="templateId" type="string" required>
  The template ID to analyze
</ParamField>
