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
- Connect the server
https://mcp.betterllama.com/mcpin your client (setup per client). - Ask your agent, for example:
- «What date is 10 business days after December 15?»
- «Is RUT 76.086.428-5 valid?»
- Or call the tool
chile_calendar_and_rutwith these 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 -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}}}'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:
{
"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
| Argument | Description | Type |
|---|---|---|
operation | Operation — What to compute. Values: feriados, es_feriado, dias_habiles, sumar_dias_habiles, regiones, provincias, comunas, validar_rut; Default: "feriados" | string |
years | Years (holidays) — Years to list (2022–2035). Empty = current year. | array<string> |
fromDate | From (YYYY-MM-DD) — Start of the range (dias_habiles, or holiday filter). | string |
toDate | To (YYYY-MM-DD) — End of the range, inclusive. | string |
dates | Dates to check (es_feriado) — YYYY-MM-DD dates. Empty = today (Chile time). | array<string> |
startDate | Start date (sumar_dias_habiles) — Empty = today. Counting starts the next day. | string |
businessDays | Business days to add (negative = subtract) — For sumar_dias_habiles. Default: 10; Max: 2000 | integer |
region | Region — Code (13), abbreviation (RM), ISO (CL-RM), numeral (XIII) or name. Filters communes/provinces and applies regional holidays. | string |
comuna | Commune — Name or CUT code (e.g. Chillán or 16101). Applies commune holidays (August 20 in Chillán and Chillán Viejo). | string |
includeRegional | Include regional holidays in the list — If you don't give a region, regional holidays are also listed (marked scope=regional). Default: true | boolean |
includeBank | Include bank holiday (Dec 31) — December 31 is a holiday only for bank services. Default: false | boolean |
saturdayIsBusinessDay | Saturday is a business day — For legal deadlines that count Saturdays (e.g. some procedural deadlines). Default: false | boolean |
search | Search by name (DPA) — Text without accents or capitals, e.g. 'nunoa'. | string |
ruts | RUTs to validate — Formats 12.345.678-5, 12345678-5 or 123456785. Max. 5,000. | array<string> |
rutBodyOnly | RUTs come without check digit — Computes the check digit from the body. Default: false | boolean |
maxItems | Maximum 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.