Paņem brīvdienu
Latvian public holidays, days off and annual leave for 2026 and 2027, computed from Latvian law.
我該用這個嗎
品質與安全性
根據工具定義與協定合規性的自動化分析。
上下文成本
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"mcp": {
"url": "https://panembrivdienu.lv/mcp"
}
}
}遠端端點
https://panembrivdienu.lv/mcpstreamable-http它能做什麼
工具清單
工具(4)
🟢latvia_calendar_statistics(year, apply_transfers)
Count working days, weekend days, holidays and total days off in 2026 or 2027 for a Monday-to-Friday week. Use it for yearly totals, such as how many working days a year has; for the holiday dates use latvia_holidays, and for leave suggestions use latvia_plan_time_off. year must be 2026 or 2027. apply_transfers=true (2026 only) moves working days and days off as the 2026 transfers do, which bind only specified state-funded institutions; the moved counts are then non-zero.
輸入結構描述
{
"type": "object",
"properties": {
"year": {
"type": "integer",
"description": "calendar year: 2026 or 2027"
},
"apply_transfers": {
"type": "boolean",
"description": "apply the 2026 workday transfers (2026 only; they bind only specified state-funded institutions)"
}
},
"required": [
"year"
],
"additionalProperties": false
}輸出結構描述
{
"type": "object",
"properties": {
"year": {
"type": "integer"
},
"transfers_applied": {
"type": "boolean"
},
"total_days": {
"type": "integer"
},
"working_days": {
"type": "integer"
},
"weekend_days": {
"type": "integer"
},
"holidays": {
"type": "integer"
},
"moved_working_days": {
"type": "integer"
},
"moved_days_off": {
"type": "integer"
},
"total_days_off": {
"type": "integer"
}
},
"required": [
"year",
"transfers_applied",
"total_days",
"working_days",
"weekend_days",
"holidays",
"moved_working_days",
"moved_days_off",
"total_days_off"
],
"additionalProperties": false
}🟢latvia_holidays(year, apply_transfers)
List Latvia's public holidays in 2026 or 2027, sorted by date, each with its Latvian and English name. Use it when you need the dates themselves; for totals use latvia_calendar_statistics, and to turn holidays into long breaks use latvia_plan_time_off. year must be 2026 or 2027; any other year is an error. apply_transfers=true (2026 only) adds the moved days off, flagged is_moved_day. Set it only for staff of the state-funded institutions the transfers bind.
輸入結構描述
{
"type": "object",
"properties": {
"year": {
"type": "integer",
"description": "calendar year: 2026 or 2027"
},
"apply_transfers": {
"type": "boolean",
"description": "apply the 2026 workday transfers (2026 only; they bind only specified state-funded institutions)"
}
},
"required": [
"year"
],
"additionalProperties": false
}輸出結構描述
{
"type": "object",
"properties": {
"year": {
"type": "integer"
},
"transfers_applied": {
"type": "boolean"
},
"holidays": {
"type": [
"null",
"array"
],
"items": {
"type": "object",
"properties": {
"date": {
"type": "string"
},
"name_lv": {
"type": "string"
},
"name_en": {
"type": "string"
},
"is_moved_day": {
"type": "boolean"
}
},
"required": [
"date",
"name_lv",
"name_en",
"is_moved_day"
],
"additionalProperties": false
}
}
},
"required": [
"year",
"transfers_applied",
"holidays"
],
"additionalProperties": false
}🟢latvia_leave_entitlement(employment_start_date, birth_date, year, fte_percentage, annual_base)
Estimate annual paid leave under the Latvian Labour Law, in calendar days excluding public holidays. Use it to answer how much leave someone has in a year; to find when to take it use latvia_plan_time_off, which counts leave in working days, a different unit. Pass annual_base=28 (the legal minimum) unless the contract grants more, and fte_percentage=1 for full time; part-time work does not shorten leave. birth_date matters only for employees under 18, who get one calendar month. If employment_start_date is on or after 1 January of year, the result is an accrual estimate; the full leave may be requested after six months of work.
輸入結構描述
{
"type": "object",
"properties": {
"employment_start_date": {
"type": "string",
"description": "YYYY-MM-DD"
},
"birth_date": {
"type": "string",
"description": "YYYY-MM-DD; employees under 18 get one calendar month"
},
"year": {
"type": "integer",
"description": "year to estimate, 2020 to 2100"
},
"fte_percentage": {
"type": "number",
"description": "working time as a fraction of full time, 0.1 to 1.0 (part-time work does not shorten leave)"
},
"annual_base": {
"type": "integer",
"description": "annual leave in calendar days, 28 (the legal minimum) to 60"
}
},
"required": [
"employment_start_date",
"year",
"fte_percentage",
"annual_base"
],
"additionalProperties": false
}輸出結構描述
{
"type": "object",
"properties": {
"entitlement_days": {
"type": "number"
},
"unit": {
"type": "string"
},
"is_accrual_estimate": {
"type": "boolean"
},
"under_18_calendar_month": {
"type": "boolean"
},
"six_month_threshold_reached_by_year_end": {
"type": "boolean"
},
"is_under_18": {
"type": "boolean"
},
"base_used": {
"type": "integer"
}
},
"required": [
"entitlement_days",
"unit",
"is_accrual_estimate",
"under_18_calendar_month",
"six_month_threshold_reached_by_year_end",
"is_under_18",
"base_used"
],
"additionalProperties": false
}🟢latvia_plan_time_off(year, pto_days, apply_transfers, employment_start_date, extra_days_off)
Suggest up to ten long breaks in 2026 or 2027, best first, where a few leave days bridge weekends and Latvian holidays. Use it to decide when to take leave; for the holiday dates alone use latvia_holidays, and for how much leave the user has use latvia_leave_entitlement. pto_days caps the working days of leave each break may use on its own; it is not a yearly budget to split. A break takes every working day between runs of days off and holds a holiday or other day off on a weekday, so a week that only joins two weekends is not listed. Leave is never planned before today in Latvia or before employment_start_date. extra_days_off adds days the employer gives, so breaks can build on them. Breaks rank by days off, then fewer leave days, then date; efficiency is days off per leave day.
輸入結構描述
{
"type": "object",
"properties": {
"year": {
"type": "integer",
"description": "year to plan leave in: 2026 or 2027"
},
"pto_days": {
"type": "integer",
"description": "most working days of leave one break may use, 1 to 100"
},
"apply_transfers": {
"type": "boolean",
"description": "apply the 2026 workday transfers (2026 only)"
},
"employment_start_date": {
"type": "string",
"description": "YYYY-MM-DD; no leave is planned before it (nor before today in Latvia)"
},
"extra_days_off": {
"type": [
"null",
"array"
],
"items": {
"type": "string"
},
"description": "extra days off such as ones the employer gives, YYYY-MM-DD in 2026 or 2027, at most 100"
}
},
"required": [
"year",
"pto_days"
],
"additionalProperties": false
}輸出結構描述
{
"type": "object",
"properties": {
"opportunities": {
"type": [
"null",
"array"
],
"items": {
"type": "object",
"properties": {
"start_date": {
"type": "string"
},
"end_date": {
"type": "string"
},
"pto_days": {
"type": [
"null",
"array"
],
"items": {
"type": "string"
}
},
"total_days_off": {
"type": "integer"
},
"efficiency": {
"type": "number"
},
"description": {
"type": "string"
}
},
"required": [
"start_date",
"end_date",
"pto_days",
"total_days_off",
"efficiency",
"description"
],
"additionalProperties": false
}
},
"transfers_applied": {
"type": "boolean"
},
"statistics": {
"type": "object",
"properties": {
"year": {
"type": "integer"
},
"total_days": {
"type": "integer"
},
"working_days": {
"type": "integer"
},
"weekend_days": {
"type": "integer"
},
"holidays": {
"type": "integer"
},
"moved_working_days": {
"type": "integer"
},
"moved_days_off": {
"type": "integer"
},
"total_potential_days_off": {
"type": "integer"
}
},
"required": [
"year",
"total_days",
"working_days",
"weekend_days",
"holidays",
"moved_working_days",
"moved_days_off",
"total_potential_days_off"
],
"additionalProperties": false
}
},
"required": [
"opportunities",
"transfers_applied",
"statistics"
],
"additionalProperties": false
}社群
證據