Skip to main content
Glama

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

generate_facturx_invoice

Action payante / authentifiée : génère une facture PDF/A-3b Factur-X 1.09.2 EN 16931 & BR-FR-CTC certifiée conforme à partir de données JSON structurées (avec PDF visuel optionnel en Base64).

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": {
      "invoice_data": "<invoice_data>"
    },
    "name": "generate_facturx_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
invoice_dataYesObjet JSON conforme au schéma GenerateFacturxRequest.
visual_pdf_base64NoOptionnel : PDF visuel A4 existant encodé en Base64 dans lequel embarquer le XML Factur-X.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations provided, the description carries the full behavioral burden and does add genuinely useful facts: the operation is paid, requires authentication, conforms to a named profile (Factur-X 1.09.2, EN 16931, BR-FR-CTC), and can embed the XML into a supplied A4 visual PDF. It still omits failure behavior, whether generation is idempotent, and any size/rate constraints, so it is not exhaustive.

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 front-loaded sentence that opens with the action and cost/auth flag, then the output artifact, then the inputs — no filler. Density is high but readability is fine; only the parenthetical input recap is slightly redundant with the schema.

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 two-parameter generator with a nested JSON payload and no output schema, the description never says what is returned (raw PDF bytes, Base64 string, file path, or a link) nor what a caller should expect on invalid invoice_data. Coverage of the input side is adequate thanks to the 100% schema descriptions, but the return side is left entirely implicit.

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 both parameters (invoice_data, visual_pdf_base64) are already documented in the input schema; the description only restates that the JSON must be structured and the visual PDF is optional Base64. It adds little meaning beyond the schema, which is the expected baseline for fully covered parameters.

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 concrete artifact: génère une facture PDF/A-3b Factur-X 1.09.2 conforme EN 16931 & BR-FR-CTC, plus the two inputs it consumes (données JSON structurées, PDF visuel optionnel). The purpose is unmistakably distinct from validate_facturx or repair_facturx_envelope, but the description never names or contrasts those siblings, so it stops short of a 5.

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?

The parenthetical 'Action payante / authentifiée' signals a cost and authentication prerequisite, which is real usage context. However, it gives no explicit when-to-use vs when-not guidance (e.g. generate here, then call validate_facturx to check the result) and no mention of what to do when invoice_data fails the GenerateFacturxRequest schema.

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.