Skip to main content
Glama

Hours of service check

hours_of_service_check
Read-onlyIdempotent

Calculates remaining driving time and the 14-hour window closure for property-carrying truck drivers under federal 11-hour, 14-hour, 30-minute break and 60/70-hour rules.

Instructions

Driving time left today for a property-carrying truck driver under the federal 11-hour, 14-hour, 30-minute break and 60/70-hour rules, and when the 14-hour window closes. Times are 24-hour HH:MM on the half hour.

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": {
      "on_duty_start": "<on_duty_start>",
      "current_time": "<current_time>"
    },
    "name": "hours_of_service_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
cycleNo70 hours in 8 days (carrier runs every day) or 60 hours in 7 days.
current_timeYesTime now, e.g. 13:30.
hours_drivenNoHours driven since coming on duty.
on_duty_startYesWhen the driver came on duty after 10 hours off, e.g. 06:00.
cycle_hours_usedNoOn-duty hours already used in the cycle, today included.
driving_hours_since_breakNoDriving hours since the last 30-minute break.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/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 safety behavior needs no restating. The description adds genuine value by disclosing scope assumptions (property-carrying, federal rules) and that it also reports when the 14-hour window closes. It does not disclose what the response contains beyond those two data points, or how edge cases like split sleeper-berth or adverse-condition exceptions are handled.

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?

A single dense sentence that front-loads the primary output (driving time left) before the secondary one (window close) and the governing rule set. Every clause carries information; nothing is padding. It would read better split into a return-value sentence and a scope sentence, but the concision is appropriate.

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

Completeness3/5

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

There is no output schema, so the description bears responsibility for describing return values, and it only covers two of them (remaining drive time, 14-hour close). It says nothing about whether remaining break time or cycle hours remaining are returned, which matters for a tool whose inputs explicitly include driving_hours_since_break and cycle_hours_used. Adequate but with a real gap for a six-parameter computational tool.

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 every one of the six parameters is already documented in the schema, including the 60/70 cycle choice and the half-hour time enumerations. The description only reinforces the half-hour HH:MM convention and does not add meaning beyond the schema, which makes the baseline 3 correct.

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

Purpose4/5

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

The description names the exact computation and its domain: remaining driving time and the 14-hour window close, restricted to property-carrying drivers under specific federal rules (11-hour, 14-hour, 30-minute break, 60/70-hour). This clearly distinguishes it from the sibling lookup tools, which fetch reference data rather than compute compliance. It stops short of a crisp verb like "compute" or "check," but the output is unambiguous.

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?

Applicability is scoped implicitly (property-carrying, federal rules, half-hour granularity), which tells the agent roughly when it is valid. However, there is no explicit when-to-use/when-not guidance, no mention of excluded cases such as passenger-carrying or hazmat operations, and no stated prerequisite that the caller knows the driver's on-duty start and cycle hours.

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