Skip to main content
Glama

Calculadoras laborales y tributarias PY/EC

Calculadora de retenciones SRI y DNIT 2026

calcular_retenciones
Read-onlyIdempotent

Cuánto retener en una factura y cuánto pagar al proveedor. Ecuador: retención de renta (Res. NAC-DGERCGC26-00000009) y de IVA (Res. NAC-DGERCGC20-00000061) según el comprador. Paraguay: retención de IVA en compras locales (Decreto 3107/19) o INR/IDU por pagos a no residentes y dividendos (Ley 6380/19). Devuelve también las fuentes oficiales y el link a la calculadora web.

Input Schema

NameRequiredDescriptionDefault
ivaNoTasa de IVA. Ecuador: 15 = 15 %; 5 = 5 %; 0 = 0 %. Paraguay (solo compra local): 10 = 10 %; 5 = 5 %; ex = Exento.
baseNoEcuador: subtotal sin IVA en USD.
agentNoParaguay (compra local): tipo de agente de retención. designado = Contribuyente designado por la DNIT; publico = Entidad pública, gobernación o municipalidad; exportador = Exportador inscripto; designado-agro = Designado, compra de productos agrícolas (Ley 6380/19, art. 90, num. 1, inc. d); exportador-agro = Exportador, compra de productos agrícolas (Ley 6380/19, art. 90, num. 1, inc. d); exportador-flete = Exportador, flete de productos agrícolas; otro = Otro % (escribe el de tu designación).
buyerNoEcuador: agente = agente de retención (no especial); ce = contribuyente especial.
rentaNoEcuador: código de retención de renta. 312 = Compra de bienes muebles; 307 = Servicios de personas naturales donde prevalece la mano de obra; 303A = Servicios profesionales de una sociedad; 3482 = Comisiones a sociedades; 303 = Honorarios de personas naturales (prevalece el intelecto); 320 = Arriendo de inmuebles; 309 = Publicidad y medios de comunicación; 310 = Transporte privado de pasajeros o de carga; 343B = Construcción de obra material inmueble; 322 = Seguros y reaseguros (primas); 343A = Energía eléctrica; 343 = Compras a un RIMPE emprendedor; 332 = Compras a un RIMPE negocio popular (con nota de venta); 3440 = Otros pagos sin porcentaje específico.
amountNoParaguay: compra local = total de la factura con IVA incluido; INR/IDU = monto bruto pagado (Gs.).
retPctNoParaguay, agent = otro: porcentaje de retención de IVA de tu designación (0 a 100).
conceptNoParaguay: concepto. local = Compra local con IVA (retención de IVA); inr-servicios = No residente: servicios personales, profesionales o no; inr-digital = No residente: servicios digitales, internet, audio o video; inr-intereses = No residente: intereses de préstamos de entidades del exterior no vinculadas; inr-flete = No residente: transporte internacional y fletes; inr-seguros = No residente: seguros y reaseguros; inr-alquiler = No residente: alquiler de inmuebles en Paraguay; inr-vinculadas = No residente: pagos a casa matriz, socios o vinculadas; inr-otros = No residente: otros conceptos; idu-res = Dividendos o utilidades a un socio residente; idu-nores = Dividendos o utilidades a un socio no residente.
countryYesPaís: py = Paraguay (guaraníes, DNIT/MTESS/IPS), ec = Ecuador (USD, SRI/IESS).
ivaCaseNoEcuador: tipo de compra para la retención de IVA. bienes = Bienes, a un proveedor que no es contribuyente especial; servicios = Servicios, comisiones o consultoría, a un proveedor que no es especial; profesional = Servicios profesionales de una persona natural con título superior; arriendo = Arriendo de inmueble a una persona natural no obligada a llevar contabilidad; liquidacion = Compra con liquidación de compra; construccion = Contrato de construcción; ce-bienes = Bienes, a un contribuyente especial; ce-servicios = Servicios, a un contribuyente especial.
permanentNoEcuador: proveedor permanente (segunda compra o más en el mes): retiene renta aunque sea menos de USD 50.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuinely non-obvious behavioral information: it returns official legal sources and a link to the web calculator, which matters because there is no output schema. It says nothing about error handling or how rates are resolved when inputs are ambiguous.

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 core question is front-loaded in the first clause, and the rest is dense, example-driven legal context with no filler. It is slightly long with stacked resolution citations, but each sentence carries information an agent cannot get from structured fields.

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 an 11-parameter, two-jurisdiction tool with no output schema, the description covers what is computed, under which rules, and what is returned. The remaining gap is that conditional requirements are only implied (e.g. which parameters become necessary once country=ec vs country=py), leaving the agent to infer the effective schema from per-parameter descriptions.

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 every parameter is already documented with country tags and enum meanings, so the schema does the heavy lifting. The description only supplements with the underlying legal resolutions (NAC-DGERCGC26-00000009, NAC-DGERCGC20-00000061, Decreto 3107/19, Ley 6380/19), which is corroborating context rather than new parameter semantics. Baseline 3 applies.

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 concrete verb and resource ('calcular retenciones') and frames the exact question it answers ('Cuánto retener en una factura y cuánto pagar al proveedor'). It also scopes the two jurisdictions and names the taxes involved, which distinguishes it from siblings like calcular_iva or calcular_impuesto_renta.

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 establishes clear usage context by enumerating the scenarios it covers (Ecuador renta/IVA withholding by buyer type; Paraguay local IVA retention or INR/IDU), which is effectively a when-to-use map. It does not, however, explicitly exclude alternatives or tell the agent when to prefer calcular_iva or calcular_impuesto_renta instead.

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.