Skip to main content
Glama

FacturLint - Factur-X 1.09.2 & BR-FR-CTC E-Invoicing

convert_invoice_format

Action payante / authentifiée : convertit un fichier XML UBL 2.1, XML CII ou PDF Factur-X en PDF A4 lisible scellé Factur-X (facturx_pdf), en XML CII (cii_xml) ou en XML UBL 2.1 (ubl_xml).

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": "convert_invoice_format"
  }
}

Input Schema

NameRequiredDescriptionDefault
filenameNoNom optionnel du fichier source.
target_formatNoFormat de sortie souhaité (par défaut : facturx_pdf).
content_base64YesContenu binaire du fichier XML ou PDF encodé en Base64.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does add real value by disclosing the paid/authenticated requirement and that the PDF output is a readable A4 sealed as Factur-X. It does not cover error behavior for malformed input, size limits, or whether the output is returned inline as Base64, which are significant gaps for a mutation-style conversion with zero annotation coverage.

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?

A single dense sentence front-loads the cost/authentication warning and then maps inputs to outputs. Nothing is redundant, though the parenthetical format enumeration makes it slightly list-heavy.

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 3-parameter tool with no output schema and no annotations, the description covers the essential what and the auth/cost constraint. It leaves out return mechanics (inline Base64 vs. download), failure modes, and any size or profile limits, so it is adequate but not complete.

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%, so the baseline is 3, but the description adds genuine meaning by spelling out what each enum value yields (a sealed readable A4 PDF, CII XML, or UBL 2.1 XML) rather than only the bare codes in the schema. The accepted input encodings are likewise clear from both schema and description.

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?

The description gives a precise verb ('convertit') plus the exact source formats (XML UBL 2.1, XML CII, PDF Factur-X) and target formats (facturx_pdf, cii_xml, ubl_xml). An agent can distinguish this conversion tool from siblings like generate_facturx_invoice or repair_facturx_envelope, 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?

It states the operation is paid and requires authentication, which is useful context before calling. However, it gives no guidance on when to prefer this over generate_facturx_invoice (creating from scratch) or repair_facturx_envelope (fixing a broken envelope); the routing must be inferred from the format-conversion framing.

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.