{"openapi":"3.1.0","info":{"title":"DOT Verdict — Federal Compliance API & Remote MCP","version":"1.0.0","summary":"Read-only U.S. FMCSA (USDOT/MC), DOL OSHA, and USCG PSIX compliance verdicts.","description":"Live federal compliance verification across U.S. FMCSA Motor Carrier Census & L&I (BMC-91X / BMC-84 / OOS / revocations), U.S. DOL OSHA Enforcement API v4 (29 CFR citations & abatement), and U.S. Coast Guard PSIX (Certificates of Documentation & expired-COD detection). Operated by Luli Labs Limited (UK Co. 16050221). Not affiliated with USDOT, DOL, or USCG.","contact":{"name":"DOT Verdict Support (Luli Labs Limited)","email":"hello@dotverdict.com","url":"https://dotverdict.com/docs"},"license":{"name":"DOT Verdict Terms of Service","url":"https://dotverdict.com/terms"}},"servers":[{"url":"https://dotverdict.com","description":"Production DOT Verdict API"}],"tags":[{"name":"Compliance Lookup","description":"Live REST lookup across FMCSA, DOL OSHA, and USCG PSIX."},{"name":"Remote MCP","description":"Streamable HTTP Model Context Protocol (2025-03-26, JSON-RPC 2.0)."},{"name":"System","description":"Service health check."}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"API Key","description":"Optional Pro ($79/mo, 2,500 calls/mo) or Team ($149/mo, 10,000 calls/mo) Bearer API key. Omit for anonymous rate-limited free access."}},"schemas":{"ComplianceFlag":{"type":"object","properties":{"code":{"type":"string","example":"AUTHORITY_NOTICE"},"severity":{"type":"string","enum":["info","warning","critical"]},"label":{"type":"string"},"detail":{"type":"string"}},"required":["code","severity","label","detail"]},"ComplianceEntity":{"type":"object","properties":{"slug":{"type":"string","example":"dot-80806"},"agency":{"type":"string","enum":["fmcsa","osha","uscg"]},"identifier":{"type":"string","example":"80806"},"secondaryIdentifier":{"type":"string","nullable":true,"example":"MC-135797"},"name":{"type":"string","example":"J B HUNT TRANSPORT INC"},"state":{"type":"string","nullable":true,"example":"AR"},"verdictScore":{"type":"integer","minimum":0,"maximum":100,"example":96},"verdictTier":{"type":"string","enum":["PASS","WATCH","FAIL"]},"statusLevel":{"type":"string","enum":["low","moderate","elevated","critical"]},"canonicalPath":{"type":"string","example":"/dot/80806"},"sourceName":{"type":"string"},"sourceUrl":{"type":"string","format":"uri"},"fetchedAt":{"type":"string","format":"date-time"},"flags":{"type":"array","items":{"$ref":"#/components/schemas/ComplianceFlag"}}},"required":["slug","agency","identifier","name","verdictScore","verdictTier","canonicalPath","sourceUrl","fetchedAt"]},"LookupSuccessResponse":{"type":"object","properties":{"ok":{"type":"boolean","const":true},"found":{"type":"boolean","const":true},"agency":{"type":"string","enum":["fmcsa","osha","uscg"]},"entity":{"$ref":"#/components/schemas/ComplianceEntity"}},"required":["ok","found","agency","entity"]},"LookupNotFoundResponse":{"type":"object","properties":{"ok":{"type":"boolean","const":false},"found":{"type":"boolean","const":false},"query":{"type":"string"},"agency":{"type":"string","enum":["fmcsa","osha","uscg"]},"reason":{"type":"string"},"officialSearchUrl":{"type":"string","format":"uri"}},"required":["ok","found","query","agency","reason"]},"McpJsonRpcRequest":{"type":"object","properties":{"jsonrpc":{"type":"string","const":"2.0"},"id":{"oneOf":[{"type":"string"},{"type":"integer"}]},"method":{"type":"string","enum":["initialize","notifications/initialized","ping","tools/list","tools/call"]},"params":{"type":"object","additionalProperties":true}},"required":["jsonrpc","method"]}}},"paths":{"/api/lookup":{"get":{"tags":["Compliance Lookup"],"operationId":"lookupComplianceEntity","summary":"Verify a USDOT/MC carrier, OSHA establishment, or USCG documented vessel","description":"Queries official FMCSA Socrata/QCMobile, U.S. DOL OSHA API v4, or USCG PSIX SOAP feeds and returns a deterministic 0-100 PASS/WATCH/FAIL compliance verdict.","security":[{},{"BearerAuth":[]}],"parameters":[{"name":"q","in":"query","required":true,"description":"Identifier or legal name to search (e.g., \"80806\", \"MC-135797\", \"TQL\", \"318014502\", \"1092502\", \"KAREN MORAN\").","schema":{"type":"string"},"examples":{"usdot":{"summary":"J.B. Hunt USDOT","value":"80806"},"mcDocket":{"summary":"TQL MC Docket","value":"MC-322572"},"oshaCase":{"summary":"OSHA Inspection","value":"318014502"},"uscgVessel":{"summary":"USCG Vessel Official #","value":"1092502"}}},{"name":"agency","in":"query","required":false,"description":"Optional agency selector: fmcsa, osha, or uscg.","schema":{"type":"string","enum":["fmcsa","osha","uscg"]}}],"responses":{"200":{"description":"Verified compliance entity dossier returned.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"}},"X-RateLimit-Remaining":{"schema":{"type":"integer"}},"X-RateLimit-Reset":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LookupSuccessResponse"}}}},"401":{"description":"Invalid or inactive Bearer API key."},"404":{"description":"No matching federal record found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LookupNotFoundResponse"}}}},"429":{"description":"Per-IP or API key rate limit exceeded."}}}},"/mcp":{"get":{"tags":["Remote MCP"],"operationId":"getMcpDiscovery","summary":"Remote MCP server discovery metadata","responses":{"200":{"description":"MCP endpoint capabilities, 4 read-only tool schemas, and rate limits."}}},"post":{"tags":["Remote MCP"],"operationId":"postMcpJsonRpc","summary":"Streamable HTTP MCP JSON-RPC 2.0 endpoint (protocol 2025-03-26)","description":"Handles initialize, notifications/initialized, ping, tools/list, and tools/call for verify_usdot_carrier, lookup_mc_authority, check_osha_establishment, and verify_uscg_vessel_cod.","security":[{},{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpJsonRpcRequest"},"example":{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"verify_usdot_carrier","arguments":{"usdot":"80806"}}}}}},"responses":{"200":{"description":"JSON-RPC 2.0 response payload."},"202":{"description":"Accepted JSON-RPC notification."},"400":{"description":"Malformed JSON or invalid JSON-RPC request."},"401":{"description":"Invalid Bearer API key."},"429":{"description":"Rate limit exceeded."}}}},"/api/health":{"get":{"tags":["System"],"operationId":"getHealth","summary":"Service readiness probe","responses":{"200":{"description":"Service healthy."}}}}}}