Skip to main content
Glama

Render a Romanian e-Factura XML as PDF

efactura_to_pdf

Renders a valid e-Factura XML as PDF using ANAF's official public transformation service (no ANAF account). Returns the PDF as a base64 resource. The XML must pass validation. Costs 1 credit; not billed on errors.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xmlYesUBL 2.1 Invoice or CreditNote XML (RO e-Factura / CIUS-RO)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does so well: it discloses the external dependency (ANAF public service), the prerequisite (XML must pass validation), the return shape (base64 PDF resource), and the billing model (1 credit, not billed on errors). It omits rate limits and the practical size ceiling that the schema's maxLength implies.

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?

Four short sentences, each load-bearing (mechanism, return format, prerequisite, cost), with the core action front-loaded and no filler.

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

Completeness4/5

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

For a one-parameter stateless transform with no output schema, the description covers what goes in, what comes back, and the cost model. Remaining gaps (size limits, latency, failure modes beyond billing) are minor.

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% for the single parameter, so the schema already explains it is UBL 2.1 Invoice/CreditNote CIUS-RO XML. The description only loosely reinforces this via 'must pass validation', so baseline 3 is appropriate.

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?

States a specific verb+resource ('Renders a valid e-Factura XML as PDF') and names the backing service, which clearly separates it from parse_efactura, validate_efactura and generate_efactura. An agent can identify the transform direction without opening any schema.

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?

Gives clear context — the XML must be valid and the public ANAF service means no account is required — which implies validate_efactura should run first. It does not explicitly name an alternative or state when not to use it, so it stops short of full routing guidance.

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.

Resources