Skip to main content
Glama
cmendezs

mcp-facture-electronique-fr

validate_ereporting_xml

Validate DGFiP e-reporting XML against the official XSD schema to catch structural errors before submission.

Instructions

Validate a DGFiP e-reporting (Flux 10) FRR XML payload.

Scope: XSD schema validation only, no business-rule checks. See README "Scope" section.

Checks the XML against the DGFiP Spécifications Externes v3.2 ereporting.xsd. Returns validation result with errors if any. Use this before submitting to catch structural problems early.

Validation levels (in order of preference):

  • xsd — full schema validation (requires lxml)

  • wellformedness — basic XML parsing only (stdlib fallback)

  • none — XSD files not found on disk

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xml_contentYesFRR XML content to validate. Must be a complete Report document per DGFiP Spécifications Externes v3.2 ereporting.xsd. Full XSD validation requires lxml (`pip install lxml`); otherwise well-formedness is checked.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

No annotations are provided, so the description carries full burden. It discloses that only XSD validation is performed (no business rules), explains fallback behaviors based on lxml availability, and mentions the return of validation results with errors. However, it does not explicitly state the tool is read-only (though implied).

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 with the main purpose. It uses bullet points for validation levels, making it easy to scan. Every sentence adds value without redundancy.

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?

The tool is simple with one parameter, and the description covers its scope, usage, validation levels, and return information. An output schema exists (not shown), but the description already states 'Returns validation result with errors if any,' which is sufficient. No gaps remain.

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?

The input schema covers 100% of the parameter (xml_content) with a good description, including the lxml requirement. The description adds context about validation levels and schema version, but does not significantly enhance the parameter's semantics beyond what the schema already provides.

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 tool name 'validate_ereporting_xml' is specific, and the description clearly states it validates DGFiP e-reporting FRR XML payloads. It distinguishes itself from sibling tools because no other validation tool exists in the list.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly states to use this before submitting to catch structural problems early, and clarifies its scope (XSD schema validation only, no business rules). It does not need to differentiate from alternatives since no other validation tools are present, but could be more explicit about when not to use.

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