Skip to main content
Glama
gsaccardi

Dichiarino

by gsaccardi

calcola_risultato_dichiarazione

Calculate the final 730 tax return outcome, determining whether you receive a refund or owe IRPEF, by combining gross tax, deductions, and withholdings.

Instructions

Calcola il risultato finale della dichiarazione 730: rimborso o debito IRPEF.

    Combina IRPEF lorda, tutte le detrazioni spettanti e le ritenute già versate
    per determinare se il contribuente riceverà un rimborso o dovrà pagare un saldo.

    Args:
        reddito_complessivo: Reddito complessivo in euro.
        irpef_trattenuta: IRPEF già trattenuta dal sostituto d'imposta (da CU).
        giorni_lavoro: Giorni di lavoro nell'anno (default 365).
        tipo_reddito: "lavoro_dipendente" | "pensione" | "lavoro_assimilato".
        regione: Regione di residenza (es. "lombardia"). Default: "lombardia".
        familiari: Lista familiari a carico (vedi calcola_detrazioni_familiari).
        spese: Lista spese Quadro E (vedi calcola_oneri).
        oneri_deducibili_totale: Totale oneri già deducibili (riduce reddito imponibile).
        anno: Anno di imposta. Default: 2024.
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
annoNo
speseNo
regioneNolombardia
familiariNo
tipo_redditoNolavoro_dipendente
giorni_lavoroNo
irpef_trattenutaYes
reddito_complessivoYes
oneri_deducibili_totaleNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

With no annotations provided, the description carries the full burden. It discloses that the tool combines inputs to determine an outcome, which is useful, but it does not mention side-effect-free behavior, error handling, or any validation logic. The algorithmic summary is present but not deeply transparent about failure modes or limitations.

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?

The description is well-structured: a brief purpose statement followed by a bulleted Args list. It is appropriately sized for a 9-parameter tool, front-loads the key outcome, and every line adds value. No fluff or repetition.

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

Completeness3/5

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

The output schema covers return values, and the description explains all parameters well. However, it omits explicit notes on optionality (though schema shows defaults/nullable) and contains the anno default mismatch, which reduces reliability. For a 9-parameter tool, these gaps make it slightly less complete than ideal.

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?

The description includes a detailed Args section explaining every parameter, including units, examples, and defaults, which is essential given the schema has zero descriptions. However, there is a discrepancy: the description says anno default 2024, while the schema says 2025, which could mislead agents relying on the text. This prevents a perfect score.

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?

The description states the tool calculates the final 730 declaration result (refund or IRPEF debt), combining gross IRPEF, deductions, and withholdings. This is a specific verb+resource that clearly distinguishes it from sibling tools like calcola_irpef or calcola_detrazione_lavoro, which feed into this final aggregation.

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?

The description implies usage context by referencing sibling tools for input parameters ('vedi calcola_detrazioni_familiari', 'vedi calcola_oneri'), indicating this is the final computation after those are obtained. It does not explicitly state when to use vs. alternatives, but the context is clear enough for an agent to infer the appropriate workflow.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/gsaccardi/dichiarino-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server