Skip to main content
Glama

Latvia Working Day

check_lv_working_day
Read-onlyIdempotent

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateYesGregorian date in Latvia coverage.
work_scheduleYesRequired explicit Monday-Friday baseline before any selected Order 330 transfers; not a universal or individual roster.
calendar_basisYesRequired statutory_holidays_only or cabinet_order_330_transfers. Choose the latter only for a covered institution or an employer adopting the order; never infer adoption.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
linksNo
resultYes
requestYes
sourcesNo
successYes
versionNo
freshnessNo
timestampYes
next_actionsNo
service_versionYesDeployed Calcgrid implementation version used for the result.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety bar is met. The description adds meaningful behavioral context beyond that: deterministic output, no inference of Order 330 adoption, conditional (not full-day) shortening, and separate treatment of statutory rest vs non-rest observances. The no-inference rule and shortening caveat are genuinely useful, though the value is diluted by repetition.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is heavily bloated: a redundant 'Latvia Latvia' opening, near-duplicate requirement statements ('Explicit ... required' repeated thrice), six inline JSON examples duplicating the schema's own examples, and a full re-listing of output fields despite an existing output schema. Sentence fragments ('What it computes:', 'Formula:') pad length without adding selection value.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-param, fully-enumerated tool with an output schema, the description covers the essentials: scope, exclusions, formula, REST fallback, and docs link. The REST fallback and the 'do not guess another /api/* path' note are helpful operational context. It over-delivers by restating outputs, but nothing an agent needs to invoke it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real enum semantics: it explains that cabinet_order_330_transfers applies only to covered institutions or adopting employers and must never be inferred, and that mon_fri_planning is a required explicit baseline. This goes beyond the schema's field descriptions and helps the agent choose enum values correctly.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description eventually conveys that the tool checks a date against the Latvia 2026 statutory calendar, weekend baseline, and transferred rest days, so the verb+resource is inferable. But it opens with a garbled, redundant phrase ('deterministic Latvia Latvia 2026 statutory calendar') that obscures rather than clarifies the purpose. It is distinguishable from the many sibling country checkers by name, but the prose itself is muddled.

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?

It offers a 'Use this when...' clause and a substantial 'not computed' exclusion list (six-day rosters, payroll, legal deadlines, other religious calendars), which is genuine guidance. However, the stated exclusion 'Do not use this when latvia 2026 only' is incoherent, and no sibling or alternative (e.g. count_lv_working_days, add_lv_working_days) is named, leaving usage partly implied.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources