Skip to main content
Glama

Imperio — Italian Tax & Compliance Tools

Pre-filled F24 (Erario / INPS / IMU lines)

compose_f24
Read-onlyIdempotent

Composes the LINES of the Italian F24 payment form (Erario, INPS, IMU sections) with the official tax codes and causali, starting from amounts already computed (code meanings below are the Italian labels the tool returns): substitute tax and contributions of the regime forfettario (codici tributo 1790 = acconto prima rata, 1791 = acconto seconda rata o unica soluzione, 1792 = saldo; causali INPS PXX = Gestione Separata senza altra copertura, AF = artigiani sul minimale, AP = artigiani sull'eccedenza, CF = commercianti sul minimale, CP = commercianti sull'eccedenza) or IMU (3912 = abitazione principale e pertinenze (A/1, A/8, A/9), 3918 = altri fabbricati, 3914 = terreni, 3916 = aree fabbricabili; for group D 3925 = quota Stato (7,6‰) and 3930 = incremento Comune; with the municipality's cadastral code) or the STAMP DUTY (imposta di bollo) on the e-invoices of a quarter (2521 = primo trimestre, 2522 = secondo trimestre, 2523 = terzo trimestre, 2524 = quarto trimestre; deadlines 31/05 · 30/09 · 30/11 · 28/02, with the deferral rule below €5,000). For the forfettario the response also carries regola_acconti: the two 50% instalments apply to businesses whose activity has approved ISA (also in the forfettario), otherwise 40% and 60% — with the law and the calculation base. Returns structured lines (section, code, year, amount, indicative deadline) + a text rendering. COMPOSABLE: the typical input is the output of calc_forfettario (imposta_sostitutiva.importo, contributi_inps), calc_imu (imu_dovuta, acconto_giugno, saldo_dicembre) and parse_fatturapa (how many invoices have bollo_analisi.dovuto = true). It does NOT generate the official F24 form — neither PDF nor official facsimile: it is an INDICATIVE compilation that does not replace the accountant or checking with the Agenzia delle Entrate.

Input Schema

NameRequiredDescriptionDefault
imuNoRequired when kind='imu'. Fields from the output of calc_imu.
kindYesDomain to compose: 'forfettario' (Erario + INPS), 'imu' (IMU and other local taxes section) or 'bollo' (stamp duty on the e-invoices of a quarter).
bolloNoRequired when kind='bollo'. Closes the chain parse → stamp duty → F24: count how many invoices of the quarter are subject to stamp duty according to `parse_fatturapa` (field `bollo_analisi.dovuto` of each invoice) and compose the payment line.
forfettarioNoRequired when kind='forfettario'. Fields from the output of calc_forfettario.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed25 schema fields changed
    • changedInput schema / properties / bollo / description
      Previous value: -"Richiesto quando kind='bollo'. Chiude la catena parse → bollo → F24: conta quante fatture del trimestre risultano soggette a bollo secondo `parse_fatturapa` (campo `bollo_analisi.dovuto` di ciascuna fattura) e componi la riga di versamento."New value: +"Required when kind='bollo'. Closes the chain parse → stamp duty → F24: count how many invoices of the quarter are subject to stamp duty according to `parse_fatturapa` (field `bollo_analisi.dovuto` of each invoice) and compose the payment line."
    • changedInput schema / properties / bollo / properties / anno / description
      Previous value: -"Anno delle fatture (es. 2026). NB: il IV trimestre si versa entro il 28 febbraio dell'anno SUCCESSIVO."New value: +"Year of the invoices (e.g. 2026). NB: the 4th quarter is paid by 28 February of the FOLLOWING year."
    • changedInput schema / properties / bollo / properties / importo / description
      Previous value: -"Importo del bollo già calcolato in euro. Alternativo a `numero_fatture`. Se passi entrambi e non tornano, vince questo e la discrepanza viene segnalata in nota."New value: +"Stamp duty amount already computed, in euro. Alternative to `numero_fatture`. If you pass both and they do not match, this one wins and the discrepancy is reported in a note."
    • changedInput schema / properties / bollo / properties / importo_trimestri_precedenti / description
      Previous value: -"Bollo già dovuto per i trimestri precedenti dello stesso anno (default 0). Serve alla regola di differimento, che guarda il CUMULATO: sotto 5.000 € il versamento del I trimestre può slittare al 30/09 e quello di I+II al 30/11 (art. 3 DL 73/2022). III e IV trimestre non sono mai differibili."New value: +"Stamp duty already due for the previous quarters of the same year (default 0). Used by the deferral rule, which looks at the CUMULATIVE amount: below €5,000 the 1st-quarter payment can move to 30/09 and that of 1st+2nd to 30/11 (art. 3 DL 73/2022). The 3rd and 4th quarter can never be deferred."
    • changedInput schema / properties / bollo / properties / numero_fatture / description
      Previous value: -"Quante fatture del trimestre sono soggette a bollo (2,00 € ciascuna). Alternativo a `importo`: fornire almeno uno dei due."New value: +"How many invoices of the quarter are subject to stamp duty (€2.00 each). Alternative to `importo`: provide at least one of the two."
    • changedInput schema / properties / bollo / properties / trimestre / description
      Previous value: -"Trimestre solare di riferimento (1-4). Determina il codice tributo: 2521 = primo trimestre, 2522 = secondo trimestre, 2523 = terzo trimestre, 2524 = quarto trimestre."New value: +"Calendar quarter (1-4). It sets the codice tributo: 2521 = primo trimestre, 2522 = secondo trimestre, 2523 = terzo trimestre, 2524 = quarto trimestre."
    • changedInput schema / properties / forfettario / description
      Previous value: -"Richiesto quando kind='forfettario'. Campi dall'output di calc_forfettario."New value: +"Required when kind='forfettario'. Fields from the output of calc_forfettario."
    • changedInput schema / properties / forfettario / properties / anno / description
      Previous value: -"Anno d'imposta di riferimento (es. 2026)."New value: +"Reference tax year (e.g. 2026)."
    • changedInput schema / properties / forfettario / properties / gestione_inps / description
      Previous value: -"Gestione previdenziale (default gestione_separata) — determina le causali INPS (PXX = Gestione Separata senza altra copertura; AF = artigiani sul minimale, AP = artigiani sull'eccedenza; CF = commercianti sul minimale, CP = commercianti sull'eccedenza). Con cassa_privata nessuna riga INPS: i contributi non si versano in F24."New value: +"Pension scheme (default gestione_separata) — it sets the causali INPS (PXX = Gestione Separata senza altra copertura; AF = artigiani sul minimale, AP = artigiani sull'eccedenza; CF = commercianti sul minimale, CP = commercianti sull'eccedenza). With cassa_privata there is no INPS line: those contributions are not paid via F24."
    • changedInput schema / properties / forfettario / properties / imposta / description
      Previous value: -"Imposta sostitutiva dovuta in euro — calc_forfettario → imposta_sostitutiva.importo."New value: +"Substitute tax due in euro — calc_forfettario → imposta_sostitutiva.importo."
    • changedInput schema / properties / forfettario / properties / inps_fisso / description
      Previous value: -"Contributi INPS sul minimale/fisso in euro — calc_forfettario → contributi_inps.fisso."New value: +"INPS contributions on the minimum/fixed part in euro — calc_forfettario → contributi_inps.fisso."
    • changedInput schema / properties / forfettario / properties / inps_totale / description
      Previous value: -"Totale contributi INPS in euro — calc_forfettario → contributi_inps.importo. Usato solo se fisso/variabile non sono forniti."New value: +"Total INPS contributions in euro — calc_forfettario → contributi_inps.importo. Used only if fisso/variabile are not provided."
    • changedInput schema / properties / forfettario / properties / inps_variabile / description
      Previous value: -"Contributi INPS sull'eccedenza in euro — calc_forfettario → contributi_inps.variabile."New value: +"INPS contributions on the excess in euro — calc_forfettario → contributi_inps.variabile."
    • changedInput schema / properties / forfettario / properties / startup / description
      Previous value: -"Primo anno di attività: nessun acconto, si versa solo il saldo. Non è l'aliquota del 5% (che vale cinque anni): qui l'imposta arriva già calcolata."New value: +"First year of activity: no advance payments, only the balance is paid. It is not the 5% rate (which lasts five years): here the tax arrives already computed."
    • changedInput schema / properties / imu / description
      Previous value: -"Richiesto quando kind='imu'. Campi dall'output di calc_imu."New value: +"Required when kind='imu'. Fields from the output of calc_imu."
    • changedInput schema / properties / imu / properties / acconto / description
      Previous value: -"Acconto di giugno in euro — calc_imu → acconto_giugno."New value: +"June instalment in euro — calc_imu → acconto_giugno."
    • changedInput schema / properties / imu / properties / aliquota_permille / description
      Previous value: -"Aliquota deliberata dal Comune in per mille — calc_imu → parametri.aliquota_permille. Serve allo split gruppo D (7,6‰ Stato + eccedenza Comune)."New value: +"Rate set by the municipality, per thousand — calc_imu → parametri.aliquota_permille. Used for the group D split (7.6‰ State + municipal excess)."
    • changedInput schema / properties / imu / properties / anno / description
      Previous value: -"Anno d'imposta di riferimento (es. 2026)."New value: +"Reference tax year (e.g. 2026)."
    • changedInput schema / properties / imu / properties / base_imponibile / description
      Previous value: -"Base imponibile in euro — calc_imu → base_imponibile. Serve allo split del gruppo D."New value: +"Taxable base in euro — calc_imu → base_imponibile. Used for the group D split."
    • changedInput schema / properties / imu / properties / categoria_catastale / description
      Previous value: -"Categoria catastale (default A) — calc_imu → parametri.categoria_catastale."New value: +"Cadastral category (default A) — calc_imu → parametri.categoria_catastale."
    • changedInput schema / properties / imu / properties / codice_comune / description
      Previous value: -"Codice catastale/Belfiore del Comune = codice ente F24 (1 lettera + 3 cifre, es. H501 per Roma)."New value: +"Cadastral/Belfiore code of the municipality = F24 codice ente (1 letter + 3 digits, e.g. H501 for Rome)."
    • changedInput schema / properties / imu / properties / imu_dovuta / description
      Previous value: -"IMU annua dovuta in euro — calc_imu → imu_dovuta."New value: +"Annual IMU due in euro — calc_imu → imu_dovuta."
    • changedInput schema / properties / imu / properties / saldo / description
      Previous value: -"Saldo di dicembre in euro — calc_imu → saldo_dicembre."New value: +"December balance in euro — calc_imu → saldo_dicembre."
    • changedInput schema / properties / imu / properties / tipo_immobile / description
      Previous value: -"Tipo immobile — calc_imu → parametri.tipo_immobile. Determina il codice tributo IMU."New value: +"Property type — calc_imu → parametri.tipo_immobile. It sets the IMU codice tributo."
    • changedInput schema / properties / kind / description
      Previous value: -"Dominio da comporre: 'forfettario' (Erario + INPS), 'imu' (sezione IMU e altri tributi locali) oppure 'bollo' (imposta di bollo sulle fatture elettroniche di un trimestre)."New value: +"Domain to compose: 'forfettario' (Erario + INPS), 'imu' (IMU and other local taxes section) or 'bollo' (stamp duty on the e-invoices of a quarter)."
  2. Changed1 schema field changed
    • changedInput schema / properties / forfettario / properties / startup / description
      Previous value: -"Aliquota startup 5% (nuova attività): nel 1° anno solo saldo, niente acconti."New value: +"Primo anno di attività: nessun acconto, si versa solo il saldo. Non è l'aliquota del 5% (che vale cinque anni): qui l'imposta arriva già calcolata."
  3. Changed2 schema fields changed
    • changedInput schema / properties / bollo / properties / trimestre / description
      Previous value: -"Trimestre solare di riferimento. Determina il codice tributo: 1→2521, 2→2522, 3→2523, 4→2524."New value: +"Trimestre solare di riferimento (1-4). Determina il codice tributo: 2521 = primo trimestre, 2522 = secondo trimestre, 2523 = terzo trimestre, 2524 = quarto trimestre."
    • changedInput schema / properties / forfettario / properties / gestione_inps / description
      Previous value: -"Gestione previdenziale (default gestione_separata) — determina la causale INPS (PXX | AF/AP | CF/CP)."New value: +"Gestione previdenziale (default gestione_separata) — determina le causali INPS (PXX = Gestione Separata senza altra copertura; AF = artigiani sul minimale, AP = artigiani sull'eccedenza; CF = commercianti sul minimale, CP = commercianti sull'eccedenza). Con cassa_privata nessuna riga INPS: i contributi non si versano in F24."
  4. Changed1 schema field changed
    • addedInput schema / properties / bollo / anyOf
      Added value: +[
      +  {
      +    "required": [
      +      "numero_fatture"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "importo"
      +    ]
      +  }
      +]
  5. Changed1 schema field changed
    • addedInput schema / allOf
      Added value: +[
      +  {
      +    "if": {
      +      "properties": {
      +        "kind": {
      +          "const": "forfettario"
      +        }
      +      },
      +      "required": [
      +        "kind"
      +      ]
      +    },
      +    "then": {
      +      "required": [
      +        "forfettario"
      +      ]
      +    }
      +  },
      +  {
      +    "if": {
      +      "properties": {
      +        "kind": {
      +          "const": "imu"
      +        }
      +      },
      +      "required": [
      +        "kind"
      +      ]
      +    },
      +    "then": {
      +      "required": [
      +        "imu"
      +      ]
      +    }
      +  },
      +  {
      +    "if": {
      +      "properties": {
      +        "kind": {
      +          "const": "bollo"
      +        }
      +      },
      +      "required": [
      +        "kind"
      +      ]
      +    },
      +    "then": {
      +      "required": [
      +        "bollo"
      +      ]
      +    }
      +  }
      +]
  6. Changed3 schema fields changed
    • addedInput schema / properties / bollo
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Richiesto quando kind='bollo'. Chiude la catena parse → bollo → F24: conta quante fatture del trimestre risultano soggette a bollo secondo `parse_fatturapa` (campo `bollo_analisi.dovuto` di ciascuna fattura) e componi la riga di versamento.",
      +  "properties": {
      +    "anno": {
      +      "description": "Anno delle fatture (es. 2026). NB: il IV trimestre si versa entro il 28 febbraio dell'anno SUCCESSIVO.",
      +      "maximum": 2100,
      +      "minimum": 2019,
      +      "type": "integer"
      +    },
      +    "importo": {
      +      "description": "Importo del bollo già calcolato in euro. Alternativo a `numero_fatture`. Se passi entrambi e non tornano, vince questo e la discrepanza viene segnalata in nota.",
      +      "maximum": 10000000,
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "importo_trimestri_precedenti": {
      +      "description": "Bollo già dovuto per i trimestri precedenti dello stesso anno (default 0). Serve alla regola di differimento, che guarda il CUMULATO: sotto 5.000 € il versamento del I trimestre può slittare al 30/09 e quello di I+II al 30/11 (art. 3 DL 73/2022). III e IV trimestre non sono mai differibili.",
      +      "maximum": 10000000,
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "numero_fatture": {
      +      "description": "Quante fatture del trimestre sono soggette a bollo (2,00 € ciascuna). Alternativo a `importo`: fornire almeno uno dei due.",
      +      "maximum": 1000000,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "trimestre": {
      +      "description": "Trimestre solare di riferimento. Determina il codice tributo: 1→2521, 2→2522, 3→2523, 4→2524.",
      +      "maximum": 4,
      +      "minimum": 1,
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "trimestre",
      +    "anno"
      +  ],
      +  "type": "object"
      +}
    • changedInput schema / properties / kind / description
      Previous value: -"Dominio da comporre: 'forfettario' (Erario + INPS) oppure 'imu' (sezione IMU e altri tributi locali)."New value: +"Dominio da comporre: 'forfettario' (Erario + INPS), 'imu' (sezione IMU e altri tributi locali) oppure 'bollo' (imposta di bollo sulle fatture elettroniche di un trimestre)."
    • changedInput schema / properties / kind / enum
      Previous value: -[
      -  "forfettario",
      -  "imu"
      -]New value: +[
      +  "forfettario",
      +  "imu",
      +  "bollo"
      +]
  7. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the description focuses on domain behavior: it returns structured lines (section, code, year, amount, indicative deadline) plus a text rendering, and it embeds the deferral rule and `regola_acconti` logic. The caveat that the compilation is indicative and unverified is a genuinely useful behavioral disclosure; only operational edge cases (what happens on inconsistent input beyond the bollo note) are left unstated.

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?

Front-loaded with the verb and resource, then organized by domain (forfettario / IMU / bollo), which makes a dense payload navigable. It is nonetheless long, and several parenthetical code lists duplicate what the schema already documents, so a portion of the text does not earn its place.

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?

With no output schema, the description correctly supplies the return shape and the meaning of `regola_acconti`. All three `kind` branches and their nested objects are covered, leaving only minor gaps around error behavior for mismatched or partial inputs.

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% and each field already carries its calc_* mapping and constraints, so the baseline applies. The description restates the same codice tributo and causale mappings rather than adding new parameter-level meaning, though the framing of the three-way `kind` branches is helpful context.

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 and resource ('Composes the LINES of the Italian F24 payment form') and enumerates the three domains (Erario, INPS, IMU) plus stamp duty. It is clearly distinguishable from the calc_* siblings, which compute amounts rather than assemble payment lines.

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

Usage Guidelines5/5

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

Explicitly routes the agent: 'the typical input is the output of `calc_forfettario` ..., `calc_imu` ... and `parse_fatturapa`', naming the exact fields to feed in. It also sets a firm exclusion — it does NOT generate an official F24 PDF/facsimile and does not replace the accountant — so the agent knows both when to call it and what it must not be used for.

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