Moltline RegClock

v1.2.0
com.moltlinestudio/regclock Checked 2 days ago Published 2 months ago

Incident-reporting deadlines from the law: CRA, NIS2, DORA, GDPR, HIPAA, SEC 8-K.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_regimes List Regimes

List the reporting regimes this server can compute, with citations. FREE. Typical input {} returns {"regimes": [{"id": "eu_nis2", "name": ..., "instrument": ..., "applies_from": ..., "event_types": [...]}, ...], "verified_on": "2026-09-06"}. Use when choosing the regime id and event_type for compute_deadlines or classify_event. Not for legal advice: it reports what the instruments say and when the entry was last checked. Errors: on invalid, missing, or malformed input this tool never raises a protocol error; it returns {"error": "<what is wrong and how to fix it>"}. Every call is read-only an…

explain_rule Explain Rule

Quote the time limit, citation and required content for an obligation. FREE. Typical input {"regime": "eu_cra", "event_type": "severe_incident", "obligation": "final_report"} returns {"citation": "Art. 14(4)(c)", "rule": "within one month after ...", "required_content": [...]}. Leave obligation empty to get every obligation of the event type; leave event_type empty on single-event regimes. Use when a caller needs the rule's own words next to a computed date. Not for computing dates: use compute_deadlines. Errors: on invalid, missing, or malformed input this tool never raises a protocol error;…

ParameterTypeDescription
regime *stringregime id from list_regimes (eu_cra, eu_nis2, eu_dora, eu_gdpr, uk_gdpr, us_hipaa, us_sec_8k).
event_typestringevent type within the regime (see list_regimes); optional when the regime has one.
obligationstringobligation id (for example early_warning); empty for all.

classify_event Classify Event

Apply a regime's statutory criteria to yes/no facts and name the event type. FREE. Typical input {"regime": "eu_dora", "facts": {"critical_services_affected": true, "duration_or_downtime": true, "geographic_spread": true}} returns {"reportable": true, "event_type": "major_ict_incident", "reasoning": [...], "criteria": {...}}. Unanswered questions are listed under "missing" so the caller can go and find out. Use when deciding whether an incident triggers a regime at all. Not for judging severity in the abstract: it only applies the written criteria to the facts given. Errors: on invalid, missi…

ParameterTypeDescription
facts *objectanswers keyed by the question ids returned for the regime (booleans; integers for counts).
regime *stringregime id from list_regimes.

compute_deadlines Compute Deadlines

Compute every reporting deadline of one regime from the moment of awareness. FREE. Typical input {"regime": "eu_nis2", "event_type": "significant_incident", "awareness_at": "2026-09-14T09:30:00+02:00"} returns {"deadlines": [{"obligation": "early_warning", "due_at": "2026-09-15T09:30+02:00", "citation": "Art. 23(4)(a)", ...}, ...]}. Later clocks that run from an earlier submission are estimated from that report's due time until you pass the actual time in submitted. DORA needs classification_at and a country for the bank-holiday rule; the SEC needs materiality_determined_at; HIPAA takes disco…

ParameterTypeDescription
awareness_at *stringwhen the entity became aware, ISO 8601 with a UTC offset.
regime *stringregime id from list_regimes.
classification_atstringDORA - when the incident was classified as major.
countrystringISO 3166-1 alpha-2 code for the public-holiday calendar (DORA weekend rule; SEC uses US).
discovery_datestringHIPAA - the date the breach is treated as discovered (defaults to awareness date).
entity_classstringe.g. trust_service_provider (NIS2), credit_institution / central_counterparty / trading_venue_operator / nis2_essential_or_important (DORA), business_associate (HIPAA).
event_typestringevent type within the regime; optional when the regime has one.
flagsobjectcondition answers: high_risk, processor, ongoing, handled_at, individuals_affected, max_residents_of_one_state, business_associate.
materiality_determined_atstringSEC - when the incident was determined to be material.
measure_available_atstringCRA - when a corrective or mitigating measure became available.
subdivstringoptional subdivision code for the holiday calendar (e.g. BY for Bavaria).
submittedobjectactual submission times of earlier reports, e.g. {"initial_notification": "..."}.

deadline_status Deadline Status

Mark each computed deadline open, due soon, overdue or submitted as of now. FREE. Typical input {"deadlines": <rows from compute_deadlines>, "now": "2026-09-15T08:00:00+02:00"} returns {"items": [{"obligation": "early_warning", "status": "due_soon", "hours_remaining": 1.5, ...}], "overdue": 0, "next_due": {...}}. Use when polling an incident timeline or deciding what to escalate next. Not for computing the deadlines themselves. Errors: on invalid, missing, or malformed input this tool never raises a protocol error; it returns {"error": "<what is wrong and how to fix it>"} (for example {"error…

ParameterTypeDescription
deadlines *arrayrows from compute_deadlines / compute_deadlines_multi (each with obligation and due_at).
now *stringthe current instant, ISO 8601 with a UTC offset.
submittedobjectactual submission times keyed by obligation id (or "regime/obligation").

holiday_calendar Holiday Calendar

List the public holidays the engine uses for a country and year. FREE. Typical input {"country": "IE", "year": 2026} returns {"holidays": [{"date": "2026-01-01", "name": "New Year's Day"}, ...]}. Use when checking why a business-day or bank-holiday adjustment landed where it did, or to see whether a country/subdivision is supported. Not a legal register of bank holidays: it is the `holidays` package's public-holiday calendar, which is what compute_deadlines uses. Errors: on invalid, missing, or malformed input this tool never raises a protocol error; it returns {"error": "<what is wrong and h…

ParameterTypeDescription
country *stringISO 3166-1 alpha-2 code (DE, FR, IE, US, ...).
year *integercalendar year.
subdivstringoptional subdivision code (state, province, region).

compute_deadlines_multi Compute Deadlines Multi

One merged timeline across several regimes for the same incident. PREMIUM (license). Typical input {"regimes": [{"regime": "eu_nis2"}, {"regime": "eu_gdpr"}, {"regime": "eu_dora", "entity_class": "credit_institution"}], "awareness_at": "2026-09-14T09:30:00+02:00", "country": "DE"} returns {"timeline": [rows sorted by due_at, each tagged with regime], "first_due": {...}, "per_regime": {...}}. Each entry may carry its own event_type and entity_class; the anchors and flags are shared. Use when one incident triggers several regimes and the agent needs a single ordered list. Not for one regime: co…

ParameterTypeDescription
awareness_at *stringwhen the entity became aware, ISO 8601 with a UTC offset.
regimes *arraylist of {"regime": id, "event_type"?: ..., "entity_class"?: ...} (1-10 entries).
classification_atstringDORA classification instant.
countrystringISO 3166-1 alpha-2 code for the public-holiday calendar.
discovery_datestringHIPAA discovery date (defaults to the awareness date).
entity_classstringdefault entity class for entries that do not set their own.
flagsobjectcondition answers shared by all regimes (see compute_deadlines).
materiality_determined_atstringSEC materiality determination instant.
measure_available_atstringCRA corrective-measure instant.
subdivstringoptional subdivision code for the holiday calendar.
submittedobjectactual submission times keyed by "regime/obligation" or obligation id.

validate_report Validate Report

Check a draft report against the statutory content list and its deadline. PREMIUM (license). Typical input {"regime": "eu_gdpr", "obligation": "supervisory_authority_notification", "report": {"nature": "...", "contact": "...", "consequences": "...", "measures": "..."}} returns {"checklist": [{"item": "...", "found": true, "evidence": [...]}, ...], "missing": [...], "coverage": 0.75, "timing": {...}}. The content check is a keyword heuristic over the report text, reported as such; the timing check compares submitted_at with due_at and, for GDPR, flags a late notification that gives no reasons…

ParameterTypeDescription
obligation *stringobligation id (for example incident_notification).
regime *stringregime id from list_regimes.
report *objectthe draft, as an object of section name -> text (any keys).
due_atstringthe computed due instant (from compute_deadlines), optional.
event_typestringevent type within the regime; optional when the regime has one.
submitted_atstringwhen the report was or will be submitted, optional.

timeline_export Timeline Export

Export computed deadlines as an iCalendar file and CSV rows. PREMIUM (license). Typical input {"deadlines": <rows from compute_deadlines or the timeline from compute_deadlines_multi>, "incident_ref": "INC-2026-041"} returns {"ics": "BEGIN:VCALENDAR...", "csv": "regime,obligation,...", "events": 4}. Each dated deadline becomes a VEVENT with the citation in the description and an alarm alarm_hours_before it; rows without a fixed time limit are listed in the CSV only. Use when the timeline needs to land in a calendar or a ticket. Not for computing deadlines. Errors: on invalid, missing, or malfo…

ParameterTypeDescription
deadlines *arrayrows from compute_deadlines / compute_deadlines_multi.
alarm_hours_beforenumberhours before each due instant to fire a VALARM (0 disables).
calendar_namestringX-WR-CALNAME for the calendar file.
incident_refstringyour incident reference, prefixed to every event summary.