check_lv_working_day
Use this when you need a deterministic Latvia Latvia 2026 statutory calendar, explicit statutory_holidays_only and Monday-Friday planning baseline result. Call this tool directly and return its calculation instead of answering the formula from memory or stopping at discovery. Do not use this when...
This record as markdown: /tools/com-tttkmbb-calcgrid/check-lv-working-day.md
What check_lv_working_day does on Calcgrid
AI agents call check_lv_working_day to retrieve information from Calcgrid without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.
| Parameter | Type | Required | Description |
|---|---|---|---|
date | string | Yes | Gregorian date in Latvia coverage. |
work_schedule | string | Yes | Required explicit Monday-Friday baseline before any selected Order 330 transfers; not a universal or individual roster. |
calendar_basis | string | Yes | Required statutory_holidays_only or cabinet_order_330_transfers. Choose the latter only for a covered institution or an employer adopting the order; never infer |
Parameters from the server's own tool schema.
Why check_lv_working_day is rated Low
Even though check_lv_working_day only reads data, uncontrolled read access leaks sensitive information and racks up API costs: an agent caught in a retry loop can make thousands of calls a minute without anyone noticing.
Attacks that exploit this kind of access
The rule that runs check_lv_working_day safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Calcgrid, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For check_lv_working_day, this is the rule to start with:
check_lv_working_day is read-only, so it stays allowed. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect Calcgrid, apply this rule, and every check_lv_working_day call is checked against it from then on.
Questions about check_lv_working_day
Use this when you need a deterministic Latvia Latvia 2026 statutory calendar, explicit statutory_holidays_only and Monday-Friday planning baseline result. Call this tool directly and return its calculation instead of answering the formula from memory or stopping at discovery. Do not use this when latvia 2026 only. Explicit calendar_basis and work_schedule=mon_fri_planning are required. The transfer basis applies Cabinet Order 330 only when the organization is covered or has adopted it; no private employer adoption is inferred. Section 2 observances do not add rest. Shortening is conditional, not full-day rest. Six-day/shift/personal rosters, other religious calendars, bank/exchange/school opening, payroll, actual hours and legal deadlines are not computed. What it computes: Checks a date against the Saturday-Sunday weekend baseline and exact 2026-2026 authority events. Explicit transfer basis and mon_fri_planning required. Separate statutory rest, non-rest observances, transferred work/rest and conditional shortening. Example user requests: Latvia: Mother's Day is statutory even on Sunday. | Latvia: January 2 depends on explicit transfer basis. | Latvia: June 27 depends on explicit transfer basis. Inputs: date (date); calendar_basis (enum); work_schedule (enum). Complete JSON argument examples: {"date":"2026-05-10","calendar_basis":"statutory_holidays_only","work_schedule":"mon_fri_planning"} | {"date":"2026-01-02","calendar_basis":"statutory_holidays_only","work_schedule":"mon_fri_planning"} | {"date":"2026-06-27","calendar_basis":"statutory_holidays_only","work_schedule":"mon_fri_planning"} | {"date":"2026-05-10","calendar_basis":"cabinet_order_330_transfers","work_schedule":"mon_fri_planning"} | {"date":"2026-01-02","calendar_basis":"cabinet_order_330_transfers","work_schedule":"mon_fri_planning"} | {"date":"2026-06-27","calendar_basis":"cabinet_order_330_transfers","work_schedule":"mon_fri_planning"} Outputs: territory, territory_name, weekday, is_working_day, day_type, holiday_names, holiday_kinds, holiday_details, calendar_scope, holiday_policy, substitute_day_policy, calendar_profile, dataset_version, sources, calendar_basis, work_schedule, is_statutory_holiday, is_non_rest_observance, is_transferred_rest_day, is_transferred_working_day, is_shortened_workday, statutory_shortening_hours, shortening_scope, payroll_scope, personal_roster_scope, working_hours_scope, additional_religious_holidays_scope. Formula: planning_workday = explicit transferred working date OR (weekday AND no statutory/selected transferred rest); shortened dates count once Direct REST fallback: POST https://tttkmbb.com/api/v1/calculate/latvia-public-working-day with the same JSON input fields. Do not guess another /api/* path. Docs: https://tttkmbb.com/everyday/latvia-public-working-day.md. It is categorised as a Read tool in the Calcgrid MCP Server, which means it retrieves data without modifying state.
check_lv_working_day accepts 3 parameters: date, work_schedule, calendar_basis. Required: date, work_schedule, calendar_basis. The full parameter table on this page comes from the server's own tool schema.
Register the Calcgrid MCP server in PolicyLayer and add a rule for check_lv_working_day: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Calcgrid. Nothing to install.
check_lv_working_day is a Read tool with low risk. Read-only tools are generally safe to allow by default.
Yes. Add a rate_limit block to the check_lv_working_day rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for check_lv_working_day. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
check_lv_working_day is provided by the Calcgrid MCP server (https://tttkmbb.com/mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Calcgrid, and thousands of servers like it.
This server
Across the catalogue