Dates, RUT & territoryChileNo keyBeta

Holidays, business days and RUT

National, regional and local public holidays, business days between dates, adding business days, communes with CUT codes and RUT validation.

chile_calendar_and_rut

Use it over MCP

  1. Connect the server https://mcp.betterllama.com/mcp in your client (setup per client).
  2. Ask your agent, for example:
    • «What date is 10 business days after December 15?»
    • «Is RUT 76.086.428-5 valid?»
  3. Or call the tool chile_calendar_and_rut with these arguments:
arguments
{
  "operation": "sumar_dias_habiles",
  "startDate": "2026-12-15",
  "businessDays": 10
}

This tool needs no key.

Beta: free and with no sign-up while we test the service.

Direct HTTP call (JSON-RPC)

Without an MCP client, POST to the same server:

curl
curl -s https://mcp.betterllama.com/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "chile_calendar_and_rut", "arguments": {"operation": "sumar_dias_habiles", "startDate": "2026-12-15", "businessDays": 10}}}'
python
import json, requests

# Call a Better Llama MCP tool over HTTP (JSON-RPC)
URL = "https://mcp.betterllama.com/mcp"
HEADERS = {"Accept": "application/json, text/event-stream"}

def call(tool, arguments):
    body = {"jsonrpc": "2.0", "id": 1, "method": "tools/call",
            "params": {"name": tool, "arguments": arguments}}
    r = requests.post(URL, json=body, headers=HEADERS, timeout=120)
    r.raise_for_status()
    result = r.json()["result"]
    data = json.loads(result["content"][0]["text"])
    if result.get("isError"):
        raise RuntimeError(data["error"])
    return data

data = call("chile_calendar_and_rut", {"operation": "sumar_dias_habiles", "startDate": "2026-12-15", "businessDays": 10})
for row in data["results"]:
    print(row)
print(data["attribution"])

The answer text is JSON with results, count, warnings, attribution and source.

Example response

Real results returned by the source, shortened:

json
{
  "results": [
    {
      "kind": "fecha",
      "date": "2026-12-08",
      "weekday": "martes",
      "isHoliday": true,
      "isWeekend": false,
      "isBusinessDay": false,
      "holidays": [
        "Inmaculada Concepción"
      ],
      "irrenunciable": false,
      "source": "Cálculo local según la legislación chilena (Código del Trabajo y leyes citadas en legalBasis); fechas electorales según Ley 18.700."
    },
    {
      "kind": "fecha",
      "date": "2026-12-09",
      "weekday": "miércoles",
      "isHoliday": false,
      "isWeekend": false,
      "isBusinessDay": true,
      "holidays": [],
      "irrenunciable": false,
      "source": "Cálculo local según la legislación chilena (Código del Trabajo y leyes citadas en legalBasis); fechas electorales según Ley 18.700."
    }
  ],
  "attribution": "Calculado por Better Llama a partir de leyes de feriados y la División Político-Administrativa publicadas por el Estado de Chile."
}

Parameters

ArgumentDescriptionType
operationOperation — What to compute.
Values: feriados, es_feriado, dias_habiles, sumar_dias_habiles, regiones, provincias, comunas, validar_rut; Default: "feriados"
string
yearsYears (holidays) — Years to list (2022–2035). Empty = current year.array<string>
fromDateFrom (YYYY-MM-DD) — Start of the range (dias_habiles, or holiday filter).string
toDateTo (YYYY-MM-DD) — End of the range, inclusive.string
datesDates to check (es_feriado) — YYYY-MM-DD dates. Empty = today (Chile time).array<string>
startDateStart date (sumar_dias_habiles) — Empty = today. Counting starts the next day.string
businessDaysBusiness days to add (negative = subtract) — For sumar_dias_habiles.
Default: 10; Max: 2000
integer
regionRegion — Code (13), abbreviation (RM), ISO (CL-RM), numeral (XIII) or name. Filters communes/provinces and applies regional holidays.string
comunaCommune — Name or CUT code (e.g. Chillán or 16101). Applies commune holidays (August 20 in Chillán and Chillán Viejo).string
includeRegionalInclude regional holidays in the list — If you don't give a region, regional holidays are also listed (marked scope=regional).
Default: true
boolean
includeBankInclude bank holiday (Dec 31) — December 31 is a holiday only for bank services.
Default: false
boolean
saturdayIsBusinessDaySaturday is a business day — For legal deadlines that count Saturdays (e.g. some procedural deadlines).
Default: false
boolean
searchSearch by name (DPA) — Text without accents or capitals, e.g. 'nunoa'.string
rutsRUTs to validate — Formats 12.345.678-5, 12345678-5 or 123456785. Max. 5,000.array<string>
rutBodyOnlyRUTs come without check digit — Computes the check digit from the body.
Default: false
boolean
maxItemsMaximum number of results to return (1-1000). Default 50.
Default: 50; Max: 1000
integer

Source and attribution

Calculado por Better Llama a partir de leyes de feriados y la División Político-Administrativa publicadas por el Estado de Chile. Source site: betterllama.com.

FAQ

What can I calculate?

Chilean public holidays from 2022 to 2035 (national, regional, local and election days), whether a date is a holiday, business days between two dates, the date after adding business days, regions, provinces and communes with their CUT code, and RUT validation or check digit.

Do I need a key?

No. It is computed locally by the Better Llama server, with no calls to other sources.

Does it handle regional and local holidays?

Yes. If you give a region or commune, its holidays apply, for example August 20 in Chillán. The bank-only December 31 is optional.

How much does it cost?

Free during the beta, with no sign-up and a limit of 60 requests per minute per IP. If paid plans come later, we will announce them on betterllama.com first.