Skip to main content
Glama

AGOS European Compliance & Operations

French DGFiP FEC Accounting Export Validator & LME Audit Engine

validate_fr_fec
Read-onlyIdempotent

Validates French accounting export files (Fichier des Écritures Comptables, FEC) before a DGFiP tax audit against LPF Art. A.47 A-1 (18-column general or 21/22-column BIC/BNC cash layout, pipe/tab framing, SIREN filename check, YYYYMMDD dates, sequential EcritureNum, per-entry debit/credit balance, PCG VAT/cash/suspense heuristics) and audits B2B LME payment terms (60d net / 45d EOM, €40 fees, statutory interest, DGCCRF exposure). Deterministic offline pre-check; returns rulesetVersion provenance.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "fecContent": "<fecContent>"
    },
    "name": "validate_fr_fec"
  }
}

Input Schema

NameRequiredDescriptionDefault
regimeNoAccounting regime layout detection mode (default: "auto").auto
maxRowsNoMaximum data rows to parse (default 50000).
fileNameNoOptional FEC filename (e.g. "552032534FEC20251231.txt") for SIREN + closing-date DGFiP naming check.
fecContentYesRaw French FEC file content (pipe "|" or tab delimited, with header row).
lmeTermModeNoStatutory LME due-date baseline mode (default: "auto").auto
fiscalYearEndNoOptional fiscal year end date (YYYYMMDD or YYYY-MM-DD).
ecbRefiRatePctNoOptional ECB main refinancing rate (%) for LME statutory interest computation.
fiscalYearStartNoOptional fiscal year start date (YYYYMMDD or YYYY-MM-DD).
includeLmeAuditNoIf true, runs Code de commerce Art. L.441-10 LME payment-delay audit on supplier/customer accounts.
includeTrialBalanceNoIf true, computes a PCG trial balance grouped by CompteNum.
lmeAnnualInterestRatePctNoOptional explicit annual LME late-payment interest rate (%).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent, closed-world behavior, and the description adds real value on top: deterministic offline execution, the specific statutory ruleset applied, and rulesetVersion provenance in the result. It does not describe the shape of the findings (violations, severity levels, pass/fail summary), which with no output schema is a remaining gap.

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

Conciseness3/5

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

Front-loaded with a clear verb and object, but the body is one long sentence with two heavy parenthetical enumerations that are hard to scan. The density is justified by the rule set, yet it could be broken into a check list rather than a comma run-on.

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

Completeness4/5

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

For an 11-parameter, no-output-schema tool, the description covers what is checked and what provenance is returned, which is what an agent needs before calling it. It leaves the response contract (structure of violations vs. trial balance vs. LME exposure) to inference, which is the main missing piece.

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

Parameters3/5

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

Schema coverage is 100% with descriptions on all 11 parameters, so the schema already carries the meaning and baseline is 3. The description adds only indirect linkage — SIREN filename check maps to fileName, and 60d net / 45d EOM maps to lmeTermMode — without explaining regime detection or interest-rate precedence.

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?

States a precise verb (validates) and resource (French FEC accounting export files) plus two distinct functions: DGFiP FEC compliance checks and B2B LME payment-term audit. The enumerated rule set (LPF Art. A.47 A-1, 18/21/22-column layouts, SIREN filename, EcritureNum sequencing, PCG heuristics) makes it unmistakable against the sibling country validators such as validate_de_datev_extf or validate_it_fatturapa.

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

Usage Guidelines4/5

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

Gives a clear triggering context — run it before a DGFiP tax audit and as a deterministic offline pre-check — which tells the agent the situation that selects this tool. It stops short of naming alternatives or stating when-not to use it (e.g. non-French files, unsupported regimes beyond auto/general/bic_bnc_cash), so the routing guidance is clear but not exhaustive.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources