Aruba Fatture MCP
This server integrates Aruba's electronic invoicing into MCP clients, allowing you to manage invoices, counterparties, and reports using natural language. It connects to three data sources: the Aruba web panel (live, no premium), official APIs (premium required for some features), and local archives (no premium).
What you can do:
Account: Retrieve your VAT number, fiscal code, service status, and storage usage (
get_user_info).Invoice Management:
Search and filter sent/received invoices by period, status, type, and counterparty (premium via APIs, no premium via panel).
View full invoice details (ID, SDI status, notifications) using
get_invoice_detailor panel tools.Download invoices in XML, PDF, ZIP (with SDI notifications), or PDD conservation package (premium via APIs).
Send or validate invoices by uploading XML; default dry-run mode prevents accidental submission, real sending requires explicit opt-in and premium.
Create XML drafts and upload them to the panel (
panel_create_invoice_xml/panel_upload_invoice).
SDI Notifications: Track delivery receipts, rejections, etc. for a specific invoice (no premium needed).
Counterparties: List customers and suppliers, including registry details and activity periods (panel or archive).
Reports:
VAT summaries (separated sales/purchases) and revenue/purchase trends (monthly, quarterly, yearly). Available via
vat_report,revenue_trend, or equivalent panel tools.
Safety & Separation: Sent and received invoices are always kept separate;
send_invoiceusesdryRun=trueby default to prevent accidental SDI transmission.
All functions are accessible through the web panel (no premium) or via APIs (premium required for search, detail, download, and actual sending). Local archives allow offline analysis without premium.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Aruba Fatture MCPCerca le fatture ricevute la settimana scorsa"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Server Model Context Protocol che porta la Fatturazione Elettronica di Aruba dentro qualsiasi client MCP — Claude (Code e Desktop), Cursor, Cline, Zed e gli altri. Interroghi e crei fatture elettroniche (FatturaPA / SDI) in linguaggio naturale: «quanto ho fatturato quest'anno?», «prospetto IVA del trimestre», «chi sono i miei fornitori principali?», «genera la fattura per questo cliente».
Documentazione API ufficiali Aruba: https://fatturazioneelettronica.aruba.it/apidoc/v2/docs.html
Il server ha tre sorgenti dati indipendenti:
Pannello web (live) — legge le fatture direttamente dal pannello Aruba in tempo reale, senza utenza Premium. È la sorgente consigliata per liste, clienti/fornitori, IVA e statistiche;
API Aruba ufficiali — dati in tempo reale dal web service, ma richiedono un'utenza Premium (o delegata da una Premium);
archivio locale — analisi sugli XML/ZIP esportati a mano, utile offline o come backup.
In tutte le sorgenti, fatture inviate (ciclo attivo) e ricevute (ciclo passivo) sono sempre tenute separate: nessun tool le somma o le mischia.
Tool sul pannello web (live, nessuna utenza Premium)
Accedono al pannello con le stesse credenziali del login web, replicandone l'API interna. Non serve esportare nulla: i dati sono sempre aggiornati.
Tool | Descrizione |
| Elenco fatture di un ciclo ( |
| Dettaglio di una singola fattura (metadati + righe + riepilogo IVA); può salvare XML e PDF su disco |
| Clienti (dalle inviate) o fornitori (dalle ricevute), con totali e periodo di attività |
| Registro anagrafico salvato in Aruba: clienti o fornitori, con P.IVA, codice fiscale, codice destinatario e indirizzo |
| Totali IVA dell'anno: IVA vendite e IVA acquisti separate, con il saldo |
| Andamento per mese/trimestre/anno, inviate e ricevute in due serie distinte |
| Genera l'XML di una nuova fattura scegliendo il cliente dal registro Aruba; calcola i totali. Non invia |
| Carica un XML nel pannello creando una bozza pronta da rivedere e inviare. Non invia a SDI |
Ogni tool di elenco/anagrafica richiede il parametro ciclo (o tipo) proprio per non mescolare mai i due flussi. I dati dell'anno vengono scaricati una volta e messi in cache; ricarica: true forza il riscaricamento.
Creare e inviare una fattura
Il flusso è pensato per essere sicuro rispetto all'unica azione irreversibile — l'invio a SDI:
panel_registrycontipo: "clienti"per trovare il destinatario (o si conosce già la sua P.IVA);panel_create_invoice_xmlgenera l'XML: i dati del mittente sono riusati da una fattura già emessa (sempre corretti), il destinatario dal registro Aruba, e i totali IVA sono calcolati dalle righe. Restituisce il file e i totali da verificare;panel_upload_invoicecarica l'XML nel pannello come bozza.
L'invio a SDI non è automatizzato di proposito. È un'azione irreversibile e, su questo account, Aruba richiede un OTP via SMS per completarla (jsAbilitaOtpCaricaFattura). Dopo l'upload, la bozza va rivista e inviata dal pannello web. È una tutela voluta: nessun tool può far partire una fattura reale senza un passaggio umano.
Questi tool usano l'API privata del pannello, non documentata da Aruba: è più comoda (nessun requisito di utenza) ma può cambiare senza preavviso. Per l'accesso ufficiale e stabile restano i tool «API Aruba» qui sotto, che però richiedono un'utenza Premium.
Related MCP server: Invoicetronic MCP Server
Tool sulle API Aruba
Tool | Descrizione | Utenza richiesta |
| Informazioni account (P.IVA, stato servizio, spazio conservazione) | base |
| Notifiche SDI di una fattura per nome file (consegna, scarto, esiti) | base¹ |
| Invia una fattura XML a SDI — di default | Premium |
| Ricerca fatture inviate o ricevute per periodo, stato, controparte | Premium |
| Metadati completi di una fattura (per | Premium |
| Salva su disco XML, PDF, ZIP (fattura + notifiche) o PDD | Premium |
Le utenze base standalone non hanno le deleghe API (FAW-*): ricerca e dettaglio rispondono 401 (delega FAW-R non presente per le inviate, FAW-IN per le ricevute), l'upload risponde 0093 Errore deleghe — ma solo dopo aver superato la validazione XSD, quindi un errore 0092 su upload non implica che l'invio sia abilitato. ¹L'endpoint notifiche risponde a livello dati con utenza base (verificato con errorCode 0002), ma non è stato possibile verificarlo con una fattura esistente.
Attenzione: il controllo delle deleghe avviene dopo la validazione dei parametri. Una richiesta con una finestra date superiore a 10 giorni risponde 400 anche a un'utenza senza deleghe: per sapere se le deleghe ci sono, interrogare con una finestra valida.
Tool sull'archivio locale
Funzionano su una cartella di fatture esportate dal pannello Aruba (o da qualunque altro portale SDI) e non richiedono utenza Premium. Formati riconosciuti, anche in sottocartelle: .xml, .p7m (firmate CAdES) e .zip che li contengono. I duplicati — stesso emittente, numero e data — vengono unificati.
Tool | Descrizione |
| Elenco fatture filtrabile per direzione, periodo, controparte, tipo documento e importo, con i totali del sottoinsieme |
| Anagrafica clienti e fornitori ricostruita dalle fatture, con numero documenti, totali e periodo di attività |
| Prospetto IVA del periodo: imponibile e imposta per aliquota e natura, separando vendite e acquisti, con il saldo |
| Andamento di fatturato e acquisti per mese, trimestre o anno |
La direzione (emessa/ricevuta) è determinata confrontando il cedente della fattura con la partita IVA e il codice fiscale del titolare, letti automaticamente da get_user_info (con fallback a ARUBA_VAT_CODE / ARUBA_FISCAL_CODE se l'account non è raggiungibile).
vat_report è un prospetto contabile di supporto, non una liquidazione IVA: non tiene conto di detraibilità parziale, reverse charge, split payment o crediti pregressi.
Requisiti
Node.js ≥ 18
Credenziali del servizio Aruba Fatturazione Elettronica
Installazione
npm install
npm run buildConfigurazione
Variabile | Descrizione |
| Username del servizio Fatturazione Elettronica |
| Password del servizio |
|
|
| Cartella con gli XML/ZIP delle fatture, usata dai tool di analisi quando non si passa |
| Facoltativa: P.IVA del titolare, solo come fallback se |
| Facoltativa: codice fiscale del titolare, stesso scopo |
Le credenziali non vanno messe in file versionati: .env è già in .gitignore.
L'ambiente demo usa i server di test Aruba (demoauth/demows): consigliato per le prime prove.
Collegare il server a un client MCP
Il server parla stdio ed è compatibile con qualunque client MCP. La configurazione è sempre la stessa — comando node <percorso>/dist/index.js con le variabili d'ambiente qui sopra. Sotto due esempi (Claude Code e Claude Desktop); per Cursor, Cline, Zed e gli altri vale lo stesso schema command/args/env nel rispettivo file di configurazione MCP.
Claude Code
claude mcp add aruba-fatture ^
-e ARUBA_USERNAME=tuo_username ^
-e ARUBA_PASSWORD=tua_password ^
-e ARUBA_ENVIRONMENT=demo ^
-- node <percorso-del-progetto>\dist\index.jsClaude Desktop
In claude_desktop_config.json (o nel file MCP equivalente di Cursor/Cline/Zed):
{
"mcpServers": {
"aruba-fatture": {
"command": "node",
"args": ["<percorso-del-progetto>\\dist\\index.js"],
"env": {
"ARUBA_USERNAME": "tuo_username",
"ARUBA_PASSWORD": "tua_password",
"ARUBA_ENVIRONMENT": "demo"
}
}
}
}Note operative
Invio a SDI:
send_invoiceper default esegue solo la validazione (dryRun=true). L'invio reale avviene solo chiedendo esplicitamente di impostaredryRun=false.Trasmittente: le fatture inviate tramite Aruba devono riportare l'intermediario Aruba nell'
IdTrasmittente(P.IVA01879020517).Codice destinatario per ricevere fatture su Aruba:
KRRH6B9.Rate limit Aruba: 12 richieste/minuto per le ricerche, 30/minuto per gli upload; oltre soglia il server restituisce HTTP 429. Anche l'endpoint di autenticazione è soggetto a rate limit severi: il client serializza i login e riusa i token proprio per questo — in caso di 429 sull'autenticazione attendere qualche minuto.
I contenuti base64 (XML/PDF) vengono omessi dalle risposte testuali per non saturare il contesto: usare
download_invoiceper salvarli su file.I token di accesso (30 min) e di refresh (60 min) sono gestiti automaticamente.
Architettura
Il codice è organizzato per sorgente dati, in modo che i tre canali restino indipendenti.
File | Ruolo |
| Server MCP: registra tutti i tool e li instrada alla sorgente giusta |
| Login headless al pannello (OpenID Connect) e chiamate all'API interna |
| Normalizzazione e aggregazione dei dati del pannello (inviate/ricevute separate) |
| Client delle API ufficiali (OAuth2 password/refresh, gestione token) |
| Lettura di un archivio locale di |
| Parser FatturaPA v1.2.x da XML a struttura tipizzata |
| Aggregazioni sull'archivio locale (liste, controparti, IVA per aliquota, andamento) |
Come funziona la modalità pannello (live)
Il pannello web di Aruba non espone API documentate, ma la sua interfaccia parla con un backend REST interno (/services/*) dietro un login OpenID Connect (Keycloak). Il client replica il flusso di login del browser senza browser:
GET /api/oauth2/authorization/gateway→ il gateway reindirizza a Keycloak e imposta il cookie di sessione;si legge la pagina di login Keycloak e se ne estrae l'
actiondel form;POSTdi username e password all'action→ risposta con l'authorization code(il reCAPTCHA della pagina non è imposto lato server);il ritorno del
codeal gateway stabilisce la sessione applicativa.
Da qui le chiamate /services/* usano il cookie di sessione più gli header applicativi aru-sub, aru-delegator e X-Requested-With che il pannello aggiunge. Il login viene serializzato e la sessione riusata; alla scadenza (401) si rifà il login e si ritenta una volta. I dati dell'anno sono scaricati una volta e messi in cache in memoria.
È un'API privata e non documentata: funziona con qualunque utenza (nessun requisito Premium) ma Aruba può cambiarla senza preavviso. In quel caso restano operative le altre due sorgenti.
Validazione XSD locale
In test/ c'è una fattura di esempio e gli schemi XSD ufficiali FatturaPA v1.2.2. Per validare un XML senza passare dall'API (equivalente strutturale del dryRun):
pip install xmlschema
python -c "import xmlschema; s = xmlschema.XMLSchema('test/xsd/fatturapa.xsd', locations={'http://www.w3.org/2000/09/xmldsig#': 'test/xsd/xmldsig-core-schema.xsd'}); s.validate('test/esempio-fattura.xml'); print('VALIDA')"Esempi di richieste (pannello live)
«Quanto ho fatturato quest'anno? E quanto ho speso in acquisti?»
«Fammi il prospetto IVA del 2026»
«Elenca le fatture inviate di luglio»
«Chi sono i miei fornitori principali?»
«Ci sono fatture inviate scartate da SDI?»
«Confronta fatturato e acquisti trimestre per trimestre»
Come popolare l'archivio locale
Dal pannello Aruba Fatturazione Elettronica, sezione fatture inviate/ricevute, si esportano i documenti del periodo in ZIP. Basta salvare gli ZIP (senza scompattarli) in una cartella e puntarci ARUBA_ARCHIVE_DIR: i tool di analisi leggono direttamente il contenuto.
Con un'utenza Premium lo stesso archivio si popola via API con download_invoice in formato zip.
Esempi di richieste
Sulle API (utenza Premium):
«Cerca le fatture ricevute la settimana scorsa»
«Ci sono fatture scartate da SDI a luglio? Mostrami il motivo dello scarto»
«Scarica il PDF della fattura IT01234567890_00042 in C:\fatture»
«Valida questo XML prima dell'invio» (usa
send_invoicecondryRun=true)
Sull'archivio locale (qualsiasi utenza):
«Quanto ho fatturato nel secondo trimestre?»
«Fammi il prospetto IVA da gennaio a giugno»
«Chi sono i miei 10 clienti principali per fatturato?»
«Mostrami le fatture ricevute sopra i 1.000 euro»
«Confronta il fatturato mese per mese di quest'anno»
Available Tools
6 toolsdownload_invoiceScarica fattura su fileBRead-only
Scarica una fattura su disco nel formato scelto: xml (il file fattura originale), pdf (versione leggibile), zip (fattura + notifiche SDI), pdd (pacchetto di distribuzione della conservazione, disponibile solo se pddAvailable=true nel dettaglio).
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ID interno Aruba della fattura | |
| idSdi | No | Identificativo SDI della fattura | |
| format | Yes | Formato da scaricare | |
| filename | No | Nome file della fattura (es. IT01234567890_00001.xml) | |
| direction | Yes | "sent" = fatture inviate (ciclo attivo), "received" = fatture ricevute (ciclo passivo) | |
| outputPath | Yes | Percorso assoluto del file di destinazione (es. C:\fatture\fattura.pdf) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
ANNOTATION CONTRADICTION: The annotations declare readOnlyHint=true, implying this is a safe read-only operation, but the description and title clearly indicate it downloads/writes a file to disk ('su disco', 'outputPath' parameter, 'Scarica fattura su file'). This is a write/mutation operation (creating files locally), contradicting the readOnlyHint annotation. The description itself is actually accurate, but it contradicts the structured annotations.
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?
Single sentence that is dense and informative, enumerating all four formats with parenthetical explanations. front-loads the purpose and format options. Slightly dense but efficient with no wasted words.
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?
No output schema exists, so the description should hint at return values—it does not. For a 6-parameter, 3-required download tool with a local-file side effect and a conditional format (pdd), the description handles format semantics well but omits confirmation/error behavior (e.g., what happens on success, whether it returns file info, behavior when file exists). The pdd availability condition is a good touch. The contradiction with readOnlyHint also undermines completeness.
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%, so all 6 parameters are documented in the schema. The description adds limited extra value: it explains the pdd format availability condition (pddAvailable=true, which is a datum not in the schema). However, it adds nothing about id vs idSdi distinction, filename usage, or how id/idSdi/filename interplay for identification—the schema already covers definitions adequately.
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?
Clear specific verb+resource: 'Scarica una fattura su disco nel formato scelto' with explicit format options (xml, pdf, zip, pdd) and their meanings. Distinguishes itself from sibling tools like search_invoices and get_invoice_detail by describing a file download operation with format choices. The pdd availability note adds specificity beyond siblings.
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 description explains what each format represents (xml=original file, pdf=readable, zip=invoice+SDI notifications, pdd=conservation package), which helps the agent choose the right format. However, it doesn't explicitly state when to use this tool over search_invoices/get_invoice_detail (which could also retrieve data), nor when NOT to use it, and mentions the required direction parameter implicitly without guiding when to pick sent vs received.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_invoice_detailDettaglio fatturaARead-only
Restituisce i metadati completi di una singola fattura (mittente, destinatario, stato, notifiche SDI). Identificarla con uno tra id, filename o idSdi. Per scaricare XML/PDF/ZIP usare download_invoice.
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ID interno Aruba della fattura | |
| idSdi | No | Identificativo SDI della fattura | |
| filename | No | Nome file della fattura (es. IT01234567890_00001.xml) | |
| direction | Yes | "sent" = fatture inviate (ciclo attivo), "received" = fatture ricevute (ciclo passivo) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations provide readOnlyHint=true, so the safety profile is already covered. The description adds useful context that this is a metadata retrieval operation (distinct from download of binary files) and mentions what fields are returned (sender, recipient, status, SDI notifications). It doesn't describe error behavior for ambiguous identifiers (e.g., what happens if multiple identifiers given or none found), but with the read-only annotation and clear output framing, this is adequate.
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 sentences, zero waste. First sentence states the purpose and return contents; second sentence identifies the tool by an identifying parameter. Every phrase earns its place, and the alternative-tool pointer is compact. Excellent front-loaded structure.
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 single-invoice metadata lookup with read-only annotation, 100% schema coverage, and no output schema, the description is quite complete. It covers purpose, identification method, and directs binary downloads to the appropriate sibling. The only minor gap is not discussing multi-identifier scenarios or error/not-found behavior, but these are edge cases for a metadata tool with such well-documented parameters.
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 description coverage is 100%, so the schema fully documents all four parameters including the direction enum semantics. The description adds value by clarifying that only ONE of id/filename/idSdi is needed (mutually exclusive choices), which is not explicit in the schema. However, since the schema already comprehensively documents each parameter, the description adds modest incremental value beyond structured coverage.
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?
Description states it returns complete metadata for a single invoice (sender, recipient, status, SDI notifications) with a specific verb (Restituisce) and resource (una singola fattura). It clearly distinguishes from the sibling download_invoice by explicitly mentioning XML/PDF/ZIP download goes there, and from search_invoices by focusing on a single invoice identified by one of three identifiers.
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?
Explicitly states when to use: to retrieve metadata of a single invoice. It provides clear identification guidance (use id, filename, or idSdi) and explicitly directs users to download_invoice for XML/PDF/ZIP, giving an explicit alternative. This is excellent when-to-use and when-not-to-use guidance.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_invoice_notificationsNotifiche SDI di una fatturaARead-only
Restituisce le notifiche SDI di una singola fattura a partire dal nome file (es. ricevuta di consegna, scarto, mancata consegna). Funziona anche con utenza base: è il modo per tracciare lo stato di una fattura inviata via API (il filename è restituito da send_invoice come uploadFileName).
| Name | Required | Description | Default |
|---|---|---|---|
| direction | Yes | "sent" = fatture inviate (ciclo attivo), "received" = fatture ricevute (ciclo passivo) | |
| invoiceFilename | Yes | Nome file della fattura (es. IT01307730869_00001.xml), come restituito da send_invoice |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
The readOnlyHint=true annotation already covers the safety profile as a read operation, so the bar is lower. The description adds that it works with base accounts and retrieves specific notification types (delivery receipt, rejection, non-delivery), but doesn't detail return format, pagination, or what happens when notifications don't exist yet for a fresh invoice. Adequate but not rich.
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 sentences with zero wasted words. The first states purpose with examples; the second gives a critical usage note tying it to send_invoice and clarifying it works on a basic account. Every word earns its place.
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 simple read tool with 2 required, fully-documented params and a readOnlyHint annotation, the description is reasonably complete. It covers purpose, usage context, and the source of the key parameter. It doesn't describe output shape since there's no output schema, but for a notification-status tool the description covers the essential agent decisions.
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 description coverage is 100%, so the schema already documents both parameters well. The description adds the note that invoiceFilename matches what send_invoice returns as uploadFileName, which is useful cross-tool context, but both parameters are already clearly described in the schema. Baseline 3 is appropriate.
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?
The description states the tool returns SDI notifications for a single invoice by filename (delivery receipt, rejection, non-delivery), a specific verb+resource with clear scope. It also distinguishes itself from siblings by noting it works with basic accounts and that it's the way to track an invoice sent via API, tying directly to send_invoice's uploadFileName.
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 description explicitly says when to use it: to track the status of an invoice sent via API, noting it works even with a basic account and referencing that the filename comes from send_invoice's uploadFileName return value. This provides concrete usage context and distinguishes it from sibling tools like search_invoices and get_invoice_detail.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_user_infoInfo account ArubaARead-only
Restituisce le informazioni dell'account Aruba Fatturazione Elettronica: partita IVA, codice fiscale, stato del servizio, spazio di conservazione utilizzato.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
The readOnlyHint annotation already declares this is a read operation. The description adds value by enumerating specific data returned (partita IVA, codice fiscale, service status, storage space used), which goes slightly beyond the annotation. It doesn't disclose response format or pagination, but for a 0-parameter info tool this is acceptable.
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?
A single, focused sentence that front-loads the purpose and enumerates the specific data fields returned. It's compact and information-dense with no filler. Could arguably add sibling differentiation but that's not a conciseness concern.
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 0-parameter, read-only info tool with a readOnlyHint annotation, the description is largely complete — it states what the tool does and what data it returns. No output schema exists, so the field enumeration compensates somewhat for for the lack of structured return info, though exact return format remains unspecified.
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?
The tool has 0 parameters, so the description has no parameter burden to carry. With no params at all, the baseline of 4 applies — the description correctly focuses entirely on what the read operation returns rather than param syntax.
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?
The description specifies a clear verb+resource ('Restituisce le informazioni dell'account Aruba Fatturazione Elettronica') and enumerates exactly what fields are returned (partita IVA, codice fiscale, stato del servizio, spazio di conservazione). It's distinct from sibling tools which are all invoice-centric operations.
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 description implies this is a read-only account-info retrieval tool distinct from the invoice operations of siblings. However, it doesn't explicitly state when to use this vs alternatives, though the account-info scope naturally differentiates it from invoice-specific tools.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
search_invoicesRicerca fattureARead-only
Cerca fatture elettroniche inviate (ciclo attivo) o ricevute (ciclo passivo) su Aruba Fatturazione Elettronica, filtrando per periodo, stato, tipo documento e controparte. Risultati paginati. NOTA: richiede un'utenza Premium (o delega da Premium); con utenza base risponde 401 per mancanza di deleghe.
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Pagina dei risultati (default 1) | |
| size | No | Risultati per pagina (default 10, max 100) | |
| status | No | Filtro stato fattura (per le inviate: 1=presa in carico, 2=errore elaborazione, 3=inviata a SDI, 4=scartata da SDI, 7=consegnata, 8=accettata, 9=rifiutata) | |
| direction | Yes | "sent" = fatture inviate (ciclo attivo), "received" = fatture ricevute (ciclo passivo) | |
| documentType | No | Tipo documento (TD01, TD04, TD24, ...) | |
| senderCountry | No | Paese del cedente/prestatore (es. IT). Obbligatorio per utenze Premium | |
| senderVatcode | No | Partita IVA del cedente/prestatore. Obbligatoria per utenze Premium | |
| creationEndDate | Yes | Data/ora fine ricezione su piattaforma, ISO 8601. Massimo 10 giorni di differenza da creationStartDate: per periodi più lunghi eseguire più ricerche in finestre da 10 giorni | |
| modifiedEndDate | No | Data fine ultima modifica, ISO 8601 | |
| receiverCountry | No | Paese del cessionario/committente | |
| receiverVatcode | No | Partita IVA del cessionario/committente | |
| creationStartDate | Yes | Data/ora inizio ricezione su piattaforma, ISO 8601 (es. 2026-08-01 o 2026-08-01T00:00:00) | |
| modifiedStartDate | No | Data inizio ultima modifica, ISO 8601 | |
| receiverFiscalcode | No | Codice fiscale del cessionario/committente |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations declare readOnlyHint=true, so safety profile is covered. The description adds valuable context about the Premium account/delegation requirement and the 401 error for base accounts, plus the 10-day maximum date window. This goes beyond the annotations to reveal real operational constraints.
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?
Description is a single reasonably concise sentence followed by a brief NOTE about the Premium requirement. It's front-loaded with the core purpose. Slightly verbose with the enumerated filter list but acceptable. The note is important and earns its place.
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 search/list tool with no output schema, it provides good context: filter capabilities, pagination, account requirements, and the 10-day window constraint. Given the tool operates on paginated results and has 14 params, the description covers the essential operational constraints well. Could mention result ordering or default behavior but is largely complete.
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%, so all 14 parameters are documented in the schema itself. The description adds some context about senderCountry/senderVatcode being mandatory for Premium accounts (which the individual parameter descriptions also mention). The description doesn't add much beyond what the schema already conveys, so baseline 3 is appropriate.
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?
The description clearly states the tool searches Italian electronic invoices (sent/received) on Aruba Fatturazione Elettronica with filters for period, status, document type, and counterparty. It clearly distinguishes from siblings (search vs get/detail/download/send/notifications). However, it doesn't explicitly name sibling alternatives for search functions, so slightly below 5.
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?
Provides clear context about pagination and the Premium account requirement/delegation note (401 without delegations on base accounts). It states what it searches but doesn't explicitly say when to use it vs. siblings like get_invoice_detail. The 10-day window constraint on creationEndDate is helpful usage guidance.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
send_invoiceInvia fattura a SDIA
Carica una fattura elettronica XML su Aruba per l'invio al Sistema di Interscambio (SDI). ATTENZIONE: con dryRun=false la fattura viene inviata realmente a SDI. Per default dryRun=true: il file viene solo validato, senza invio. Il file XML deve indicare come trasmittente l'intermediario Aruba (IdTrasmittente 01879020517). Fornire il file tramite xmlFilePath (consigliato) oppure xmlContent.
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | true (default) = solo validazione, nessun invio a SDI. Impostare esplicitamente false per l'invio reale | |
| signed | No | true se il file è firmato digitalmente (CAdES .p7m o XAdES): usa l'endpoint uploadSigned | |
| senderPIVA | No | Partita IVA del mittente, necessaria solo per documenti TD26 o casi multi-azienda | |
| xmlContent | No | In alternativa al percorso: contenuto XML della fattura come testo | |
| xmlFilePath | No | Percorso assoluto del file XML (o .p7m se signed=true) da inviare |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. It does an excellent job: explicitly warns that with dryRun=false the invoice is REALLY sent to SDI, clarifies the default dryRun=true only validates, and instructs that the XML must declare Aruba as intermediary. It also covers signed-file behavior (CAdES/XAdES endpoint). Minor gap: doesn't state what the response looks like or what happens on validation failure, but given no annotations, the disclosure is strong.
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?
Three sentences, all dense with actionable information: purpose, critical dryRun warning, default behavior, prerequisite (IdTrasmittente), and input method recommendation. Zero filler. The warning is appropriately front-loaded right after the main purpose statement.
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?
This is a high-stakes mutation tool (real invoice submission) with 5 parameters and no output schema and no annotations. The description covers the critical safe-mode behavior, prerequisite validation, and input selection. Minor gap: doesn't mention expected return/response format, validation error behavior, or post-submission tracking (e.g., how to get notification later via get_invoice_notifications sibling). A bit more on outcomes would make it complete.
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 description coverage is 100%, so parameters are already documented in the schema. The description adds value by recommending xmlFilePath over xmlContent and noting senderPIVA is only needed for TD26/multi-azienda cases. This is extra context beyond schema. However, much of the important semantic detail (dryRun behavior, signed endpoint) lives in the schema, so the description's marginal contribution is moderate.
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?
The description clearly states the tool loads an XML e-invoice onto Aruba for submission to the Sistema di Interscambio (SDI). It has a specific verb (carica/invia), specific resource (fattura elettronica XML, Aruba, SDI), and differentiates from siblings like search_invoices, get_invoice_detail, and download_invoice which are clearly distinct read operations.
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?
Provides explicit when-to-use guidance with the critical dryRun=true default safety warning, and contrasts with siblings which are read-only tools. It explains the real-send side effect requires dryRun=false, and gives clear rules about the XML needing Aruba as trasmittente (IdTrasmittente 01879020517). Also addresses which input method to use (xmlFilePath recommended over xmlContent).
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
6 tool updates
v1.0.0- First observed
download_invoice - First observed
get_invoice_detail - First observed
get_invoice_notifications - First observed
get_user_info - First observed
search_invoices - First observed
send_invoice
TDQS
Scored across 6 tools
Each tool targets a clearly distinct purpose: account info, searching, detail retrieval, downloading, sending, and notifications. The overlap between get_invoice_detail and get_invoice_notifications is minimal since one returns metadata while the other returns SDI notifications. download_invoice is clearly distinguished from get_invoice_detail by its download focus.
Tools follow a consistent verb_noun pattern: get_user_info, search_invoices, get_invoice_detail, download_invoice, send_invoice, get_invoice_notifications. The verbs (get/search/download/send) are consistent and descriptive. Minor stylistic inconsistency exists in user_info (underscore) vs invoice tools being all snake_case but readable.
Six tools is a well-scoped set for an e-invoicing service covering the core lifecycle. Not overly heavy or thin for the domain, though a few more could be expected (e.g., managing uploads or listing all uploads), but this feels within reason.
The set covers the core invoicing workflow: retrieving user info, searching, getting details, downloading files, sending, and checking notifications. Minor gaps exist—there's no tool to manage/update the account, cancel invoices, or list uploads as a whole—but the essential active/passive cycle workflows are covered.
Maintenance
Related MCP Connectors
MCP server for Quaderno — tax-rate calculation, invoices, contacts, products, receipts & expenses.
MCP server for Codat — companies, connections, invoices, bills and financial statements.
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
Hosted MCP server for Mini Accountant: invoices, expenses, customers, analytics, tax estimates.
Related MCP Servers
- AlicenseAqualityAmaintenanceModel Context Protocol (MCP) server for Italian Electronic Invoicing (FatturaPA / SDI). Provide tools to validate, generate, and explore API specifications for Sistema di Interscambio (SDI) interoperability.43355 PyPI1Apache 2.0
- AlicenseAqualityDmaintenanceMCP server for Italian electronic invoicing via the Invoicetronic API, enabling management of invoices through SDI with 20 tools for sending, receiving, exporting, and more.18MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for integrating VeriFactu (AEAT) with Claude Code and Cursor, enabling generation, chaining, and sending of electronic invoicing records via natural language.MIT
- AlicenseAqualityBmaintenanceMCP server for POP — enabling LLMs to generate, submit, and manage Italian e-invoices (FatturaPA/SdI), Peppol invoices, and PDF invoices directly from AI assistants.1624 npmMIT