Skip to main content
Glama

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

convert_stripe_invoice_to_einvoice

Action payante / authentifiée : transforme un payload JSON Stripe (événement invoice.finalized ou objet invoice) en facture électronique certifiée Factur-X 1.09.2, ZUGFeRD 2.5 ou XRechnung 3.0 (PDF/A-3b + XML validé).

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": {
      "stripe_invoice": "<stripe_invoice>"
    },
    "name": "convert_stripe_invoice_to_einvoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
seller_configNoParamètres vendeur (seller_name, seller_country, seller_legal_id, seller_vat, seller_iban). Optionnel si un Stripe Bridge est configuré sur la clé API.
stripe_invoiceYesÉvénement Stripe invoice.finalized ou objet Stripe Invoice JSON.
target_profileNoProfil cible (facturx-en16931 par défaut, ou auto-eu).

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 at all, the description carries the full burden and does disclose two operationally important traits: the call is paid and requires authentication, and the output is a PDF/A-3b container with validated XML. It stops short of describing failure behavior (invalid payload, non-compliant seller data) or how the artifact is returned.

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 sentence that front-loads the cost/auth warning, then the verb, input and output. Nothing is redundant, though the nested parentheses around input types and output artifacts make it slightly denser than necessary.

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 conversion tool with no output schema, the description covers the output artifact types but not how the result is delivered (file, URL, base64), what happens when XML validation fails, or what seller_config is needed when no Stripe Bridge is configured. Adequate but leaves real gaps for a tool with nested-object input.

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%, so the schema already documents seller_config, stripe_invoice and the target_profile enum, making 3 the baseline. The description does map the three named output standards onto target_profile values, but leaves the 'auto-eu' option and the seller_config fallback (Stripe Bridge) unexplained beyond the schema text.

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 names a concrete verb (transforme) and both endpoints of the transformation: a Stripe invoice.finalized event/invoice object in, a certified Factur-X 1.09.2 / ZUGFeRD 2.5 / XRechnung 3.0 document out. The Stripe input source distinguishes it from siblings like generate_facturx_invoice or convert_invoice_format, though it never explicitly contrasts itself with them.

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 a real precondition ('Action payante / authentifiée') and implies usage by the input type (Stripe payloads only), which is useful context. However, there is no explicit when-to-use versus convert_invoice_format or generate_facturx_invoice, and no stated exclusions.

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.