Skip to main content
Glama

extract_accounting_fec

Action payante / authentifiée : génère des écritures comptables équilibrées Débit = Crédit au format officiel FEC DGFiP (18 colonnes) ou CSV Sage/Cegid depuis une facture Factur-X ou UBL 2.1.

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": {
      "content_base64": "<content_base64>"
    },
    "name": "extract_accounting_fec"
  }
}

Input Schema

NameRequiredDescriptionDefault
filenameNo
journal_typeNoType de journal comptable (achats ou ventes).
export_formatNoFormat d'export (fec DGFiP ou sage_csv).
content_base64YesContenu binaire du PDF Factur-X ou XML CII/UBL encodé en Base64.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose the paid/authenticated nature and the guarantee that produced entries are balanced Débit = Crédit and conform to the 18-column DGFiP FEC layout — useful beyond-name context. It says nothing about return shape (inline content, base64 file, or download URL), default journal_type behavior, or failure modes for non-compliant input.

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 sentence with the paywall/auth warning front-loaded, followed by the exact transformation and output formats. Every element (18 columns, Débit = Crédit, Sage/Cegid) is concrete rather than filler; only minor loss is that the prerequisite and the purpose are packed into a single clause chain.

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

Completeness3/5

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

For a generation tool with four parameters, no annotations and no output schema, the definition covers input formats, output formats and the balancing guarantee, which is the core of the contract. The gap is the response: an agent cannot tell whether it receives FEC text, a base64 file, or a link, nor what a paid/authenticated failure looks like.

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 75%, so the schema already documents journal_type, export_format and content_base64; baseline is 3. The description adds real value by mapping the enum values to real-world formats ("FEC DGFiP (18 colonnes)", "CSV Sage/Cegid") and by clarifying that content_base64 holds a PDF Factur-X or XML CII/UBL. It adds nothing about the undocumented fourth parameter (filename) or how journal_type affects the output.

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

Purpose4/5

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

States a specific verb and resource: "génère des écritures comptables équilibrées Débit = Crédit" from a "facture Factur-X ou UBL 2.1" into "format officiel FEC DGFiP (18 colonnes) ou CSV Sage/Cegid". The input-format/output-format specificity distinguishes it from siblings like convert_invoice_format or generate_facturx_invoice, though no sibling is named explicitly.

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?

"Action payante / authentifiée" is a genuine prerequisite that tells the agent this call requires payment and authentication, and the source-format mention implies the input must be a structured Factur-X/UBL invoice. But there is no when-not guidance, no pointer to an alternative (e.g. parse_visual_pdf_invoice for non-structured PDFs), and no statement about what to do if the invoice is unbalanced or invalid.

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