Skip to main content
Glama

X3 Compliance

Check a driver log against FMCSA hours of service

hos_check
Read-onlyIdempotent

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.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "events": "<events>"
    },
    "name": "hos_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
asOfNoWhen the log ends ("now"), ISO 8601. Default: the last event.
cycleNo70/8 (default) or 60/7
eventsYesDuty-status changes in time order.
carrierNoproperty (395.3, default) or passenger (395.5)
shortHaulNo150 air-mile short-haul driver (no 30-minute break rule)
homeTimeZoneNoIANA zone of the home terminal, default America/New_York
priorDailyOnDutyHoursNoOn-duty hours for the days before the log, most recent first

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety behavior is covered. The description adds real domain substance — the full rule list it evaluates and the fact that it reports remaining drive/window time — but says nothing about result shape, error handling, or how ambiguities (missing prior days, time zone conversion) are treated.

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

Conciseness4/5

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

Front-loaded with the purpose, then coverage, then the input-format instruction. The long parenthetical rule list is dense but earns its place by defining evaluation scope; only the trailing offset instruction slightly duplicates the schema.

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 seven-parameter regulatory calculator with no output schema, the description conveys enough: what it evaluates, which rule parts, and that it returns violations plus available remaining time. A brief note on result structure would close the remaining gap.

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

Parameters3/5

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

Schema description coverage is 100%, so all seven parameters including cycle, carrier, shortHaul, adverse, and priorDailyOnDutyHours are already documented. The description's one added constraint — events in time order with ISO 8601 times including an offset — is a useful emphasis on the most common input failure mode but largely restates the schema's own wording.

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

Purpose5/5

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

States a specific verb and resource — find every hours-of-service violation in a commercial driver's duty-status log — and scopes it to 49 CFR Part 395, with the secondary output (remaining time) named up front. This clearly separates it from maritime (mariner_rest_check) and driver-qualification (dq_file_check) siblings without needing to name them.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The regulatory citation and the enumerated rule set (11/10-hour, 14/15-hour window, 30-minute break, 60/70-hour cycle, split sleeper, adverse conditions, short-haul, 16-hour) tell an agent exactly which inputs this tool applies to. It stops short of explicit when-not guidance or naming an alternative tool for adjacent checks.

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.