Skip to main content
Glama

get_inspection_crash_summary

Read-onlyIdempotent

A carrier's roadside inspection, violation and crash summary on its own. Paid, flat price; billed whenever the USDOT number resolves, even if the carrier had no inspections (that is the finding). An unknown number is a free not_found.

inspections (SMS data, a 24-month window that ends weeks before today: read window_end): inspection counts by driver and vehicle, out-of-service counts and rates (FMCSA's own method; no national average is carried, so cite FMCSA's), violation counts in total and by BASIC, last inspection date. When there were no inspections the measures are null, never zero, and data_quality_flags says why: inspection_summary_no_inspections (in SMS, none in the window) or inspection_summary_unavailable (in neither SMS file, so SMS says nothing either way). A carrier inspected only after window_end reads as having none.

crashes (federally recordable crashes, trailing 730 days ending at the build date): counts by fatal, injury, tow-away and hazmat release, plus fatalities and injuries and the last crash date. A floor, not a total: about 19% of crash records carry no USDOT number and cannot be attributed to any carrier.

Counts, not a rating: this does not say a carrier is safe or unsafe, and it carries no contact information.

Paid via x402: 0.02 USDC per call (on Solana, Base or Polygon), or prepaid API-key credit. Billed only when the call returns records; a miss is free.

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": {
      "usdot_number": "<usdot_number>"
    },
    "name": "get_inspection_crash_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
usdot_numberYesCarrier USDOT number (digits only), the canonical FMCSA carrier identifier.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / usdot_number / description
      Added value: +"Carrier USDOT number (digits only), the canonical FMCSA carrier identifier."
  2. Added

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, but the description goes well beyond them: flat-price billing that triggers whenever the USDOT resolves even with zero inspections, a free not_found for unknown numbers, null-vs-zero semantics explained via data_quality_flags values, and the explicit caveat that ~19% of crash records cannot be attributed to a carrier. These are exactly the behaviors an agent needs to interpret results and avoid misreading them.

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

Conciseness3/5

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

It is front-loaded with the resource definition and organized into labeled paragraphs (inspections, crashes, caveats, pricing), which helps scanning. However it is roughly 250 words for a single-parameter lookup, and the billing model is stated twice ('billed whenever the USDOT number resolves' vs 'billed only when the call returns records; a miss is free') in wording that could be read as slightly inconsistent about the zero-inspection case.

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

Completeness5/5

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

For a one-parameter, no-output-schema tool, this covers everything an agent needs: data windows with an explicit window_end reference, null-vs-zero interpretation, known coverage limitations for crash attribution, and the billing trigger. Nothing material is left for the agent to guess.

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?

With one parameter at 100% schema coverage, the schema already defines the USDOT number, so the baseline is 3. The description adds meaning beyond the schema by stating that an unresolvable number produces a free not_found rather than an error, which is behavior tied directly to the input.

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 first sentence names the resource precisely (roadside inspection, violation and crash summary for a carrier) and enumerates what it contains, so an agent knows exactly what it gets. It never names or contrasts with a sibling such as get_safety_history, so the agent must infer which summary tool to pick.

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 description gives clear framing for when the output is meaningful: the 24-month SMS window ending before today, the trailing 730-day crash window, and the warning that 'counts, not a rating' means it should not be used to certify a carrier as safe. It stops short of saying when to choose this over an alternative carrier-history tool, and gives no prerequisites for obtaining a USDOT number first.

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.