Skip to main content
Glama
cmendezs

mcp-facture-electronique-fr

by cmendezs

create_webhook

Subscribe to webhook notifications for French e-invoicing flows by specifying callback URL, flow type, and direction. Receive POST events when matching invoices or reports are created or updated.

Instructions

Subscribe to webhook notifications from the Approved Platform.

The AP will POST event payloads to the callback URL whenever a flow matching the specified filters (flow type, direction, processing rule, ack status) is created or updated.

HUMAN-IN-THE-LOOP: Requires user confirmation. Call without confirmation_token first, show the summary to the user, then call again with the token.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
auth_typeNoAuthentication type for the callback: BASIC or OAUTH2.
flow_typeYesFlow type to subscribe to: CustomerInvoice, SupplierInvoice, CustomerInvoiceLC, SupplierInvoiceLC, AggregatedCustomerTransactionReport, UnitaryCustomerTransactionReport, AggregatedCustomerPaymentReport, UnitaryCustomerPaymentReport, UnitarySupplierTransactionReport, MultiFlowReport, StateInvoice, StateCustomerInvoiceLC, StateSupplierInvoiceLC.
ack_statusNoOptional acknowledgement status filter: Pending, Ok, Error.
auth_user_idNoUser ID for BASIC authentication on the callback URL.
callback_urlYesURL the Approved Platform will POST notifications to. Must be HTTPS and reachable from the AP network.
signature_keyNoBase64-encoded signing key for webhook payload verification.
auth_client_idNoClient ID for OAUTH2 authentication on the callback.
auth_token_urlNoToken URL for OAUTH2 authentication on the callback.
flow_directionYesDirection filter: 'In' for incoming flows (from PDP to OD), 'Out' for outgoing flows (from OD to PDP).
signature_algoNoSignature algorithm: RS256, HS256, ECDSA, EDDSA_25519, RSA_PSS, EDDSA_448.
processing_ruleNoOptional processing rule filter: B2B, B2BInt, B2C, B2G, etc.
auth_client_secretNoClient secret for OAUTH2 authentication on the callback.
auth_user_passwordNoPassword for BASIC authentication on the callback URL.
confirmation_tokenNoConfirmation token from a previous call. Omit on the first call; supply on the second call to execute.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations, the description carries the full burden. It discloses that the tool triggers webhook notifications (a side effect) and crucially explains the two-step human-in-the-loop confirmation process, which is significant behavioral information. However, it does not mention authentication requirements for the tool itself or potential side effects like overwriting existing subscriptions, but for a creation tool, the confirmation flow is the key behavior and is well covered.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise, well-structured, and front-loaded. The first sentence states the core purpose, the second explains the event triggering, and the final paragraph clearly outlines the confirmation flow. No redundant words or irrelevant details.

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

Completeness5/5

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

Given the complexity (14 parameters, 100% schema coverage, and an output schema), the description provides sufficient context for an agent to use the tool correctly. It explains the behavioral trigger, the confirmation requirement, and the purpose of the callback URL. The absence of return-value details is acceptable because the output schema exists. The description is complete for a subscription-creation tool with these structures in place.

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 the baseline is 3. The description adds some conceptual context by mentioning the filter criteria (flow type, direction, processing rule, ack status) but does not explain any parameter in greater depth than the schema already does. It repeats the callback URL's purpose but adds no new syntactic or semantic information.

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 clearly states the action ('Subscribe to webhook notifications') and the resource (the Approved Platform), and specifies that the AP will POST event payloads to the callback URL on flow creation/update. This distinguishes it from sibling tools like list_webhooks, update_webhook, and delete_webhook.

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 description explains what the tool does and the trigger conditions (flow matches filters), but it does not provide explicit guidance on when to use this tool versus alternatives (e.g., update_webhook for modifying an existing subscription, or list_webhooks to enumerate). No exclusions or comparisons are mentioned, so the usage context remains implied rather than explicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cmendezs/mcp-facture-electronique-fr'

If you have feedback or need assistance with the MCP directory API, please join our Discord server