mcp-lettrage
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DATABASE_URL | Yes | PostgreSQL connection URL for the synthetic ledger database. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| rapprocher_paiementA | Point d'entrée pour lettrer une ligne de relevé bancaire. Analyse le libellé (références de facture même tronquées ou mal tapées, nom du payeur même abrégé ou via un alias/holding) et le montant, puis renvoie les meilleures hypothèses classées : une facture, plusieurs factures payées en un virement, ou une facture avec un écart (escompte, avoir déduit, paiement partiel, trop-perçu, double paiement). Chaque candidat porte un score 0-1, le type et le montant de l'écart, et les raisons du score. Score ≥ 0,8 : rapprochement fiable. Entre 0,5 et 0,8 : vérifier avec solde_client ou expliquer_ecart. Fournir releve_id si la ligne est en base, sinon libelle + montant. |
| chercher_facturesA | Recherche de factures avec filtres combinables. |
| solde_clientA | Situation d'un client : encours, factures ouvertes (avec retard et escompte), avoirs non imputés, derniers paiements reçus. |
| expliquer_ecartA | Qualifie l'écart entre un paiement et une ou plusieurs factures : aucun, paiement_partiel, trop_percu, escompte (taux prévu sur la facture), avoir (avoir non imputé du client qui couvre exactement l'écart), double_paiement (factures déjà soldées). Renvoie le type, le montant de l'écart (|reste dû − montant reçu|), une explication et l'écriture à passer. À appeler pour confirmer un candidat dont l'écart n'est pas nul. |
| lister_releves_a_lettrerA | Liste les lignes de relevé bancaire reçues et pas encore lettrées (id, date, libellé, montant), des plus anciennes aux plus récentes. Point de départ d'une session de lettrage : enchaîner ensuite rapprocher_paiement sur chaque releve_id. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 5 tools
Each tool has a reasonably distinct role, but rapprocher_paiement, chercher_factures, and solde_client all involve locating invoices/client data and could be confused at the edges. The descriptions do a good job of stating when to prefer each (e.g. fall back to chercher_factures when rapprochement finds nothing), which keeps ambiguity low.
Nearly all names follow a French verb_noun snake_case pattern (lister_releves_a_lettrer, rapprocher_paiement, chercher_factures, expliquer_ecart). 'solde_client' breaks the verb-first convention as a noun phrase, but the style and casing remain uniform and readable.
Five tools map cleanly onto a single reconciliation workflow: list lines, match, search, check client balance, explain discrepancy. Each earns its place with no redundancy and no filler.
The read/analysis side of lettrage is well covered, but there is no tool to actually commit or record a matching (validate/lettrer a line), leaving the workflow ending at a recommendation. Also no way to list or filter already-lettered items or pending matchings, which are notable gaps for a reconciliation domain.