Skip to main content
Glama

ANAF e-Factura

Render an invoice as ANAF's PDF

invoice_pdf
Read-onlyIdempotent

Have ANAF render an invoice as its official PDF, attached to the answer as a file (this server keeps no copy). Give the UBL document as the XML text as xml, which the server hashes (answered in file: size, sha256). The document is validated first unless validate is false, and when it fails nothing is returned and findings say why. Returns saved, name, bytes, sha256 and md5 of the PDF, and the PDF itself attached. The PDF itself needs no grant.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "invoice_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
xmlNoA UBL invoice or credit note, as the XML text itself (at most 1048576 characters). The server hashes the bytes it receives and answers their sha256 and size (file), so compare them with your source.
validateNoFor a document only: validate before converting.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations (readOnly/idempotent/non-destructive/openWorld), the description discloses several traits the schema cannot: the server keeps no copy, it hashes the received bytes and reports size and sha256, validation failure yields nothing plus findings, and 'The PDF itself needs no grant' clarifies an auth exemption. That is exactly the kind of operational context annotations do not carry.

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?

The description is front-loaded with the action and the attachment behaviour, then covers input, validation gate, and return fields in a tight sequence. Some sentences are dense run-ons (the parenthetical 'answered in file: size, sha256' and the final return-field list), but no sentence is filler.

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?

With no output schema, the description carries the return contract itself and does so: saved, name, bytes, sha256, md5, plus the attached PDF. It also covers the failure path and the auth exemption, leaving nothing an agent needs in order to call this correctly unaddressed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline would be 3. The description still adds meaning: the xml string is the UBL document itself, the server hashes exactly the bytes it receives so the caller can compare, and validate=false skips a gate that otherwise aborts the call with no output. Those are behavioural consequences of the parameters, not restatements of the schema.

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 leads with a specific verb and resource: 'Have ANAF render an invoice as its official PDF, attached to the answer as a file.' That is far more precise than the sibling names build_invoice/parse_invoice/validate_invoice, and the PDF-rendering scope is self-evident. It stops just short of naming a sibling to route against, so it lands at 4 rather than 5.

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 conditional flow ('The document is validated first unless validate is false') and a failure rule ('when it fails nothing is returned and findings say why'), which tells the agent what happens but not when to pick this tool over validate_invoice or parse_invoice. There are no explicit when-not or alternative-tool pointers, so the guidance is implied rather than stated.

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.