export_efactura_xml
Generate and return the UBL 2.1 XML for an invoice in e-Factura format using its stored e-Factura properties. Does NOT submit to ANAF.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoice_id | Yes | Invoice ID |
Generate and return the UBL 2.1 XML for an invoice in e-Factura format using its stored e-Factura properties. Does NOT submit to ANAF.
| Name | Required | Description | Default |
|---|---|---|---|
| invoice_id | Yes | Invoice ID |
Changes observed during successful MCP inspections.
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description does useful work by clarifying this is a local generation step with no side effect on ANAF. However it omits what happens when the invoice lacks stored e-Factura properties, whether the XML is persisted to disk, and whether any permission/validation can fail.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two short sentences with zero filler; the core action leads and the disambiguating constraint follows immediately.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a one-parameter tool with no output schema, the description tells the agent the return value (UBL 2.1 XML) and the non-submission behavior. Missing only edge-case behavior (missing properties, error output), which is a modest gap.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100% for the single required parameter, so the baseline is 3; the description adds that invoice_id selects the invoice whose stored e-Factura properties are serialized, which is meaning beyond 'Invoice ID'. No format/example detail is given, so not a 5.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb and artifact ('Generate and return the UBL 2.1 XML') tied to a specific resource ('an invoice in e-Factura format'), and explicitly scopes the source of data ('using its stored e-Factura properties'). It also carves itself away from the submission sibling with 'Does NOT submit to ANAF.'
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The negative clause 'Does NOT submit to ANAF' effectively routes the agent to submit_invoice_to_efactura for filing and to this tool for local XML retrieval. It gives clear context but never names the alternative tool or states prerequisites (e.g. that e-Factura properties must already be populated).
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.