X3 Compliance

v1.1.2
io.github.x3allamerican/x3-compliance-mcp Checked 1 day ago Published 18 days ago

FMCSA, OSHA, PHMSA, 811, eCFR and Coast Guard compliance tools.

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

hos_check Check a driver log against FMCSA hours of service

Find every hours-of-service violation in a commercial driver's duty-status log under 49 CFR Part 395 (11/10-hour driving, 14/15-hour window, 30-minute break, 60/70-hour cycle with 34-hour restart, split sleeper berth, adverse conditions, short-haul, 16-hour exception) and how much time the driver has left. Give status changes in time order with ISO 8601 times that include an offset.

ParameterTypeDescription
events *arrayDuty-status changes in time order.
asOfstringWhen the log ends ("now"), ISO 8601. Default: the last event.
carrierstringproperty (395.3, default) or passenger (395.5)
cyclestring70/8 (default) or 60/7
homeTimeZonestringIANA zone of the home terminal, default America/New_York
priorDailyOnDutyHoursarrayOn-duty hours for the days before the log, most recent first
shortHaulboolean150 air-mile short-haul driver (no 30-minute break rule)

osha_is_recordable Is this injury or illness OSHA recordable?

Decide under 29 CFR 1904.4-1904.11, 1904.29 and 1904.39 whether a case goes on the OSHA 300 Log, its column (death, days away, restricted, other) and type, whether it is a privacy case, and whether OSHA must be called within 8 or 24 hours. First-aid ids: otcMedicationAtOtcStrength, tetanusImmunization, cleaningWounds, woundCoverings, hotColdTherapy, nonRigidSupport, temporaryImmobilizationForTransport, nailDrillingBlisterDraining, eyePatch, eyeForeignBodyIrrigationOrSwab, splinterRemovalSimple, fingerGuards, massage, drinkingFluidsHeatStress. Medical-treatment ids (any other text also counts a…

ParameterTypeDescription
amputationbooleanAmputation
bloodborneIllnessDiagnosedbooleanA bloodborne illness was diagnosed
contaminatedSharpsbooleanNeedlestick or cut from a sharp contaminated with another person's blood or OPIM
continuationOfRecordedCasebooleanSame type of injury to the same body part, already recorded, not yet healed
daysAwaynumberCalendar days away from work, not counting the day of injury
deathbooleanDeath
diagnosisstringSignificant diagnosis
employeeRequestsPrivacybooleanEmployee asked that their name be left off (illnesses only)
exceptionstringA 1904.5(b)(2) exception that applies, if any
hivHepatitisOrTbbooleanHIV, hepatitis or tuberculosis
hoursAfterIncidentnumberHours from the incident to the death, hospitalization, amputation or eye loss
inpatientHospitalizationbooleanIn-patient hospitalization
intimateBodyPartbooleanIntimate body part or reproductive system
lossOfConsciousnessbooleanLost consciousness
lossOfEyebooleanLoss of an eye
medicalRemovalstringMedical removal under an OSHA standard
mentalIllnessbooleanMental illness
preExistingSignificantlyAggravatedbooleanFor a pre-existing condition: did work significantly aggravate it?
restrictedDaysnumberCalendar days of restricted work or job transfer
sexualAssaultbooleanSexual assault
treatmentsarrayTreatments given: first-aid ids, medical-treatment ids, or plain text
tuberculosisAfterExposurebooleanTB infection after occupational exposure to a known active case
typestringinjury, skin, respiratory, poisoning, hearing or other (illness)

osha_coverage Must an employer keep OSHA records and file them electronically?

Check 29 CFR 1904.1, 1904.2 and 1904.41: whether a company must keep OSHA 300/300A/301 records (size and partially exempt NAICS industries) and whether an establishment must submit Form 300A, and Forms 300 and 301, to OSHA's Injury Tracking Application, with the due date and posting calendar.

ParameterTypeDescription
naics *stringThe establishment's NAICS code (6 digits best)
peakCompanyEmployees *numberMost employees the whole company had at one time in the year
peakEstablishmentEmployees *numberMost employees at this establishment at one time in the year
year *numberCalendar year the records cover

osha_rates TRIR and DART rates

Compute the total recordable case rate (TRIR), DART rate and days-away case rate per 200,000 hours, the way BLS does.

ParameterTypeDescription
daysAwayCases *numberColumn H
hoursWorked *numberTotal hours worked by all employees
otherCases *numberColumn J
restrictedCases *numberColumn I
deathsnumber300A column G

osha_hearing_shift Is a hearing loss OSHA recordable (Standard Threshold Shift)?

Compare a baseline and current audiogram at 2000, 3000 and 4000 Hz under 29 CFR 1904.10: Standard Threshold Shift of 10 dB average plus a 25 dB hearing level in the same ear. Optional age correction from 29 CFR 1910.95 Appendix F.

ParameterTypeDescription
baseline *object{ age?, left: {2000, 3000, 4000}, right: {2000, 3000, 4000} } in dB
current *objectSame shape as baseline
ageCorrectSexstringApply Appendix F age correction using the male or female table

dig_clock_811 811 call-before-you-dig clock

When may an excavator legally start digging after an 811 locate request, when must utilities mark, what is the latest start, and when does the ticket expire, under state one-call law with the statute cited. States: MI, OH, TX. Holidays default to U.S. federal holidays; pass the one-call center's posted list when you have it.

ParameterTypeDescription
noticeAt *stringWhen the locate request was made, ISO 8601 with offset
state *stringTwo-letter state
holidaysarrayNotification-center holidays, YYYY-MM-DD
longProjectbooleanWork will outlast the normal ticket life
plannedStartstringPlanned start, ISO 8601 with offset (optional; checked for problems)
timeZonestringOverride the state's time zone, e.g. America/Denver for far west Texas

parse_811_ticket Read an 811 ticket email

Pull the ticket number, type, dates, excavator, address, work area, coordinates and member utilities out of the plain text of a one-call ticket.

ParameterTypeDescription
text *stringThe ticket text

cfr_lookup Read a federal regulation (eCFR)

Get the current (or dated) text of a Code of Federal Regulations citation such as "49 CFR 395.3(a)(2)" or "29 CFR 1910.147(c)(4)" from the official eCFR, paragraph by paragraph with a citation and link for each.

ParameterTypeDescription
citation *stringA section citation with a title, e.g. 49 CFR 192.605(b)
datestringYYYY-MM-DD to read the rule as of that date (optional)

cfr_changes What changed in a federal regulation?

List the substantive amendments to a CFR part (or section) since a date, newest first, from the official eCFR. Optionally compare one section between two dates paragraph by paragraph.

ParameterTypeDescription
since *stringYYYY-MM-DD
title *numberCFR title
compareTostringWith a section: compare the section as of `since` to this date (YYYY-MM-DD) or "latest"
partstringPart
sectionstringSection, e.g. 395.1 (optional)

uscg_vessel_profile Coast Guard compliance snapshot for a vessel

For a PSIX vessel ID: particulars, current certificates (Certificate of Inspection, documentation, load line, class) with days left, recent inspections and incident investigations, deficiencies found and whether they are open, and flags for anything expiring or overdue.

ParameterTypeDescription
vesselId *numberPSIX vessel ID
sincestringLook at activities since YYYY-MM-DD (default 3 years)

us_federal_holidays U.S. federal holidays

The 11 U.S. federal holidays for a year, as observed (weekend holidays moved to Friday or Monday).

ParameterTypeDescription
year *numberYear

dq_file_check Check a driver qualification file (49 CFR 391.51)

Check a driver qualification file: application, pre-employment MVR and safety performance history within 30 days of hire, road test or equivalent, annual MVR and review, medical certificate, CDLIS medical status or National Registry note, Clearinghouse queries. Says what is missing, late, expiring or overdue, whether the driver is qualified to drive today, and retention dates. Dates are YYYY-MM-DD.

ParameterTypeDescription
file *object{ driver, hireDate, cdl, application?, preEmploymentMvr?, safetyPerformanceHistory?, roadTest?: {date, kind}, annualMvr?: [dates], annualReview?: [dates], medicalCert?: {issued, expires}, cdlisMedical…
asOfstringCheck as of YYYY-MM-DD (default today)

dot_random_testing DOT random drug and alcohol testing: how many, and a fair draw

FMCSA random testing under 49 CFR 382.305: the year's minimum tests from the average pool (50% drug, 10% alcohol for 2026), how many to select this period to stay on pace, and optionally an unbiased random selection from a list of driver IDs (use employee numbers, never names or SSNs), with a pool fingerprint.

ParameterTypeDescription
periodsPerYear *number4 for quarterly, 12 for monthly
poolSizes *arrayDrivers in the pool for each period so far this year, including the current one
alcoholTestsDonenumberAlcohol tests completed in earlier periods
drugTestsDonenumberDrug tests completed in earlier periods
poolIdsarrayOptional: driver IDs to draw from now
seedstringOptional seed to make the draw reproducible for an auditor

mariner_rest_check Check mariner hours of rest (STCW, 46 CFR 15.1111)

Check work periods against STCW hours of rest (10 in any 24 hours, 77 in any 7 days, no more than two rest periods with one of 6 hours, no more than 14 hours between rests) and optionally the 12-hour towing work limit in 46 U.S.C. 8104(h). Every sliding window is checked.

ParameterTypeDescription
work *arrayWork periods
fromstringRecord start (ISO)
tostringRecord end (ISO)
towingbooleanAlso apply the 12-hour towing limit

pipeline_design_and_maop Gas pipeline design pressure, MAOP and impact radius (49 CFR 192)

Steel gas pipeline arithmetic with citations: class location from building count (192.5), design pressure P = (2St/D) x F x E x T (192.105-192.115), test-pressure factor and MAOP as the lowest limit (192.619(a)), hoop stress as % SMYS, and potential impact radius (192.903).

ParameterTypeDescription
od *numberOutside diameter, inches
smys *numberSpecified minimum yield strength, psi
wall *numberNominal wall thickness, inches
buildingsnumberBuildings intended for human occupancy in the class location unit
classLocationnumberClass location 1-4 (overrides buildings)
gasTempFnumberGas temperature, °F
historicalPsignumberHighest actual operating pressure in the look-back period
installedstringInstall date YYYY-MM-DD
testPsignumberPost-construction test pressure, psig

osha_state_jurisdiction Who enforces workplace safety in a state (OSHA State Plans)

For a state and employer type (private, state-local, federal), say whether federal OSHA or a State Plan (like MIOSHA or Cal/OSHA) has jurisdiction, with the plan's agency, website and 29 CFR 1952 citation.

ParameterTypeDescription
employer *stringprivate, state-local or federal
state *stringState name or two-letter code

sds_check Read and check a safety data sheet (OSHA HazCom)

Parse the text of a GHS safety data sheet into signal word, hazard and precautionary statements, pictograms, ingredients (CAS numbers with check digits verified), exposure limits, flash point, PPE and revision date; check it against 29 CFR 1910.1200 Appendix D; and build a workplace label.

ParameterTypeDescription
text *stringThe SDS text

csa_explain Explain CSA BASIC measures from roadside inspections

Compute FMCSA SMS measures for HOS Compliance, Vehicle Maintenance, Driver Fitness and HM Compliance from inspections (date, level, violations with basic, severity 1-10 and outOfService), show which inspections drive each measure and when they step down and drop off. Percentiles are not computed.

ParameterTypeDescription
inspections *array[{ id?, date, level?, hazmatPlacarded?, violations: [{ basic: hos|vehicle|driverFitness|hazmat, severity, outOfService? }] }]
asOfstringYYYY-MM-DD (default today)
carrierTypestringgeneral, passenger or hazmat