Skip to main content
Glama
benjammartin

RemplirPDF MCP server

by benjammartin

Générer le PDF rempli

generate_document
Destructive

Fills a RemplirPDF template with user-supplied values, validates required fields and formats, saves the PDF, and returns a 24-hour download link plus app document link.

Instructions

Remplit un modèle avec les valeurs fournies et enregistre le PDF dans le compte RemplirPDF de l'utilisateur ; renvoie un lien de téléchargement valable 24 h et le lien du document dans l'application. Vérifie d'abord les champs obligatoires et les formats : en cas d'erreur, rien n'est créé et la réponse liste ce qui manque. Sans document_id, crée toujours un nouveau document ; avec document_id, remplace le contenu d'un document déjà généré avec le même modèle (l'ancienne version est écrasée). Les valeurs doivent être exactes et fournies par l'utilisateur. Nécessite un abonnement RemplirPDF actif : sinon l'outil refuse, sans rien facturer ni démarrer de paiement. Appelez get_template avant pour connaître les champs ; pour retrouver un document existant, utilisez list_documents.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
valuesYesValeurs des champs : { nom_du_champ: "valeur" }, avec les noms renvoyés par get_template. Dates AAAA-MM-JJ, mois AAAA-MM, montants 750 ou 750,50, cases à cocher "Oui". Les champs inconnus sont ignorés et listés dans ignored_fields.
templateYesSlug du modèle (voir list_templates), par exemple quittance-de-loyer.
document_idNoFacultatif : identifiant (doc_…) d'un document déjà généré avec ce même modèle, à remplacer au lieu d'en créer un nouveau. Un document qui a déjà une demande de signature n'est jamais modifié : un nouveau document est alors créé.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
pagesYesNombre de pages du PDF.
titleYesTitre du document dans le compte.
app_urlYesPage du document dans l'application RemplirPDF (connexion requise) : modifier, envoyer, faire signer.
templateYesSlug du modèle utilisé.
next_stepsYesCe que l'utilisateur peut faire ensuite (signature, envoi).
document_idYesIdentifiant du document (doc_…).
download_urlYesLien de téléchargement direct du PDF, sans connexion, valable 24 h.
ignored_fieldsNoChamps fournis mais inconnus du modèle (ignorés).
download_expires_atYesDate d'expiration du lien de téléchargement (ISO 8601).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Adds substantial context beyond the annotations: validation failures create nothing and return a list of missing items, document_id overwrites the prior version, a document with a pending signature request is never modified (a new one is created instead), and an active subscription is required with no billing on refusal. Annotations confirm destructive/non-idempotent, and the description supplies the concrete consequences.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One dense paragraph whose opening sentence front-loads what the tool does and returns. Every clause carries information, though the semicolon-chained sentences pack validation, overwrite, subscription and routing concerns together without visual separation.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers the mutation risk, error/no-op behavior, subscription gate, sibling routing and the create-vs-overwrite branch. With an output schema present it correctly does not need to enumerate return fields, and nothing an agent needs to invoke it safely is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the schema already documents the value formats and the document_id overwrite nuance, so the baseline is 3. The description nonetheless adds a real constraint not in the schema — values must be exact and user-supplied — and cross-references get_template for field names, plus the template slug source.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Starts with a specific verb+resource ('Remplit un modèle avec les valeurs fournies et enregistre le PDF'), then states the output artifacts (download link valid 24h plus the in-app document link). An agent can immediately distinguish this from siblings like get_template or get_download_link.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit routing: call get_template first to discover fields, use list_documents to retrieve an existing document. It also states the create-vs-replace branch on document_id, so the agent knows which mode it is entering and when each applies.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.