Skip to main content
Glama

French FEC Accounting Audit Parser API - CSV

fec_parser
Read-onlyIdempotent

Parse and validate French FEC (Fichier des Ecritures Comptables) accounting audit files into structured JSON entries, journal summaries, debit and credit totals, balance verification per EcritureNum and compliance issue lists. Auto-detects tab, pipe, semicolon or comma delimiters. Deterministic, zero AI, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €15/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.005/call via x402 at https://radarbg.com/x402/fec-parser.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "limit": 50,
      "content": "JournalCode|JournalLib|EcritureNum|EcritureDate|CompteNum|CompteLib|CompAuxNum|CompAuxLib|PieceRef|PieceDate|EcritureLib|Debit|Credit|EcritureLet|DateLet|ValidDate|Montantdevise|Idevise\r\nVE|Ventes|VE0001|20261105|411000|Clients|CLI01|Atelier Lyon SAS|FA-2026-01|20261105|Facture conseil|1200,00|0,00|||20261105||EUR\r\nVE|Ventes|VE0001|20261105|706000|Prestations de services|||FA-2026-01|20261105|Facture conseil|0,00|1000,00|||20261105||EUR\r\nVE|Ventes|VE0001|20261105|445710|TVA collectee 20%|||FA-2026-01|20261105|TVA 20%|0,00|200,00|||20261105||EUR\r\nAC|Achats|AC0001|20261110|606400|Fournitures administratives|||ACH-44|20261110|Fournitures bureau|150,00|0,00|||20261110||EUR\r\nAC|Achats|AC0001|20261110|401000|Fournisseurs|FRN01|Papeterie Paris|ACH-44|20261110|Fournitures bureau|0,00|150,00|||20261110||EUR\r\n"
    },
    "name": "fec_parser"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of accounting lines to return (1-2000).
contentNoRaw FEC delimited text content (UTF-8/CP1252). Provide either content or fileBase64.
fileBase64NoBase64-encoded FEC text or CSV file (alternative to content, max 15 MB).
includeCsvNoWhen true, include normalized accounting rows serialized as CSV.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, the description discloses that processing is deterministic and AI-free, that nothing is stored, that delimiters are auto-detected, and it spells out the exact access model: 5 free calls/day per IP, paid via X-API-Key, or $0.005/call via x402. Rate limits and auth mechanics are precisely the context annotations cannot express.

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?

The core capability and output list are front-loaded in the first sentence, with operational details following. The pricing/URL block is long but actionable for an agent that must handle auth; the single run-on sentence structure slightly hurts scanability.

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?

With no output schema, the description compensates by enumerating the return payload's components and by covering input modes, size cap, and access constraints. What remains unstated is failure behavior — what happens on malformed or non-FEC input, and whether compliance issues cause a rejection or just appear in the result.

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 description coverage is 100%, so every parameter is already documented in the schema; the baseline of 3 applies. The description only indirectly touches parameters by mentioning delimiter auto-detection (relevant to `content`) and adds no extra constraints or formats for `limit`, `fileBase64`, or `includeCsv`.

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?

The description opens with a specific verb+resource ('Parse and validate French FEC ... accounting audit files') and enumerates the outputs produced (structured JSON entries, journal summaries, debit/credit totals, balance verification per EcritureNum, compliance issues). Naming the FEC format explicitly distinguishes it from the many other format-specific parser siblings such as bai2_parser, coda_parser, and datev_extf_parser.

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

Usage Guidelines3/5

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

Usage is implied by the format name — an agent knows to call it for French FEC files and not for other formats — and the description clarifies that either raw content or a base64 file can be supplied. However, it never states explicit when-to-use/when-not conditions or names an alternative tool for adjacent cases (e.g., generic CSV splitting).

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