Skip to main content
Glama

calcular_cuantias_legales

Read-only

Calculates deterministic Chilean legal amounts for criminal fine-days and alimony minimums or caps in UTM/CLP under Ley 21.595, Ley 20.393, Ley 14.908 and Ley 21.389.

Instructions

Calcula cuantías legales deterministas en Chile: días-multa persona natural (Ley 21.595 Arts. 27-28), días-multa persona jurídica (Ley 20.393 Art. 12) o pensión mínima y tope de alimentos en UTM/CLP (Ley 14.908 y Ley 21.389).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "tipo": "<tipo>"
    },
    "name": "calcular_cuantias_legales"
  }
}

Input Schema

NameRequiredDescriptionDefault
tipoYes'dias_multa_natural', 'dias_multa_persona_juridica' o 'alimentos_utm'
imm_clpNoIngreso Mínimo Mensual vigente en CLP (obligatorio para 'alimentos_utm')
utm_valorNoValor UTM manual en CLP (opcional; si se omite consulta SII)
dias_multaNoNúmero específico de días-multa a liquidar (opcional)
grado_penaNoGrado penal Art. 27 Ley 21.595 ('prision', 'presidio_menor_minimo', etc.)presidio_menor_minimo
numero_hijosNoNúmero de hijos alimentarios (Ley 14.908)
ganancias_clpNoGanancias obtenidas en CLP (opcional Art. 12 Ley 20.393)
valor_dia_utmNoValor diario en UTM para persona jurídica (5 a 5.000 UTM)
ventas_linea_clpNoVentas anuales de la línea de negocio en CLP (opcional Art. 12 Ley 20.393)
ingreso_diario_liquido_clpNoIngreso diario promedio líquido en CLP (Ley 21.595 Art. 28)
ingreso_liquido_alimentante_clpNoIngreso mensual líquido del alimentante en CLP (opcional, tope 50 %)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered structurally; the description adds that the computation is deterministic and statute-anchored, which is useful context. It says nothing further about the external SII consultation triggered by omitting utm_valor, latency, or how failures surface — details that matter given the open-world hint.

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?

A single front-loaded sentence led by the verb, with the three modes listed in parallel and no filler. It is dense but every clause (statute citations, unit types UTM/CLP) carries information; only the parenthetical statute list makes it long.

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?

With 11 parameters, no output schema and three distinct computation branches, the description should say more about what is returned (amounts in CLP and/or UTM) and which parameters apply to which 'tipo'. It covers the legal scope well but leaves the caller to derive output shape and branch-specific parameter requirements from the schema alone.

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%, so the schema already documents all 11 parameters, making 3 the baseline. The description does add some meaning by grouping each computation mode with its statute, which helps an agent infer that parameters like imm_clp belong to the 'alimentos_utm' branch and valor_dia_utm to the persona jurídica branch, but it stops short of stating that parameter subsetting explicitly.

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?

States a specific verb ('Calcula') and resource ('cuantías legales deterministas en Chile') and then enumerates the three computation modes with their governing statutes (Ley 21.595 Arts. 27-28, Ley 20.393 Art. 12, Ley 14.908/21.389), which map one-to-one to the schema enum. An agent can tell exactly which legal computations are in scope, though it does not explicitly contrast itself with neighbouring calculators such as calcular_finiquito_laboral or calcular_plazo_procesal.

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?

Usage is implied by the adjective 'deterministas' and by naming a statute per mode, so an agent can infer this is for exact statutory amounts rather than estimation. However, there is no explicit when-to-use/when-not statement, no mention of prerequisites (e.g. that 'alimentos_utm' needs the current IMM, or that UTM is fetched from SII when omitted), and no routing advice among the three modes.

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

Deploy Server

Other Tools