{"openapi":"3.1.0","info":{"title":"US Department of Labor Data (BYOK) API","version":"0.1.0","description":"US Department of Labor Data (BYOK) lets an AI assistant read your own US Department of Labor Data data through the US Department of Labor Data API with a key you supply (DOL open data API key). Read-only: 5 tools (list_datasets, get_dataset_metadata, get_dataset_records, filter_dataset_records, get_example_record). The BYOK key travels with each request, is used for that one call only and is...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-dol-data.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-dol-data/docs"},"termsOfService":"https://connectorbay.com/byok-dol-data/terms"},"servers":[{"url":"https://byok-dol-data.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-dol-data/docs"},"security":[{"upstreamKey":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Optional. A Pro API key raises rate limits; no credentials are required."},"upstreamKey":{"type":"apiKey","in":"header","name":"X-Upstream-Key","description":"Your own key for the service this connector wraps (bring your own key). Used for that one call only; never stored, logged or cached."}},"schemas":{"Error":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"object"}}}}},"paths":{"/v1/tools/list_datasets":{"post":{"operationId":"list_datasets","summary":"List the datasets in the DOL open data catalog with the agency and endpoint names needed to query them. Use for \"Which D","description":"List the datasets in the DOL open data catalog with the agency and endpoint names needed to query them. Use for \"Which Department of Labor datasets can I query\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"list_datasetsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_dataset_metadata":{"post":{"operationId":"get_dataset_metadata","summary":"Get the field definitions (names, types, descriptions) of one DOL dataset before querying its records. Use for \"What fie","description":"Get the field definitions (names, types, descriptions) of one DOL dataset before querying its records. Use for \"What fields does the OSHA inspection dataset have\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"agency":{"description":"Agency abbreviation used in the dataset's API address, for example 'OSHA' or 'WHD' (take it from the dataset list).","maxLength":40,"title":"Agency","type":"string"},"endpoint":{"description":"The dataset's api_url value from the dataset list, for example 'inspection'.","maxLength":80,"title":"Endpoint","type":"string"}},"required":["agency","endpoint"],"title":"get_dataset_metadataArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_dataset_records":{"post":{"operationId":"get_dataset_records","summary":"Read records of one DOL dataset in order, with paging, field selection and sorting. Use for \"Show 10 records of the OSHA","description":"Read records of one DOL dataset in order, with paging, field selection and sorting. Use for \"Show 10 records of the OSHA inspection dataset sorted by newest open date\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"agency":{"description":"Agency abbreviation used in the dataset's API address, for example 'OSHA' or 'WHD' (take it from the dataset list).","maxLength":40,"title":"Agency","type":"string"},"endpoint":{"description":"The dataset's api_url value from the dataset list, for example 'inspection'.","maxLength":80,"title":"Endpoint","type":"string"},"limit":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"How many records to return (the provider allows up to 10000 or 5 MB per request; the default is 10).","title":"Limit"},"offset":{"anyOf":[{"maximum":1000000,"minimum":0,"type":"integer"},{"type":"null"}],"default":0,"description":"How many records to skip from the top, for paging.","title":"Offset"},"fields":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Comma-separated field names to return, for example 'case_identifier,naics_code'; leave empty for all fields.","title":"Fields"},"sort":{"anyOf":[{"enum":["asc","desc"],"type":"string"},{"type":"null"}],"default":null,"description":"Sort direction, asc or desc (use together with sort_by).","title":"Sort"},"sort_by":{"anyOf":[{"maxLength":80,"type":"string"},{"type":"null"}],"default":null,"description":"Field name to sort by.","title":"Sort By"}},"required":["agency","endpoint"],"title":"get_dataset_recordsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/filter_dataset_records":{"post":{"operationId":"filter_dataset_records","summary":"Read records of one DOL dataset that match a JSON filter such as {\"field\":\"state\",\"operator\":\"eq\",\"value\":\"CA\"}; combine","description":"Read records of one DOL dataset that match a JSON filter such as {\"field\":\"state\",\"operator\":\"eq\",\"value\":\"CA\"}; combine conditions with and/or. Use for \"Find OSHA inspection records where the state equals CA\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"agency":{"description":"Agency abbreviation used in the dataset's API address, for example 'OSHA' or 'WHD' (take it from the dataset list).","maxLength":40,"title":"Agency","type":"string"},"endpoint":{"description":"The dataset's api_url value from the dataset list, for example 'inspection'.","maxLength":80,"title":"Endpoint","type":"string"},"filter_object":{"description":"JSON filter text: {\"field\":...,\"operator\":...,\"value\":...} with operators eq, neq, gt, lt, in, not_in or like; wrap several in {\"and\":[...]} or {\"or\":[...]}.","maxLength":1000,"title":"Filter Object","type":"string"},"limit":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"How many records to return (the provider allows up to 10000 or 5 MB per request; the default is 10).","title":"Limit"},"offset":{"anyOf":[{"maximum":1000000,"minimum":0,"type":"integer"},{"type":"null"}],"default":0,"description":"How many records to skip from the top, for paging.","title":"Offset"},"fields":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Comma-separated field names to return, for example 'case_identifier,naics_code'; leave empty for all fields.","title":"Fields"},"sort":{"anyOf":[{"enum":["asc","desc"],"type":"string"},{"type":"null"}],"default":null,"description":"Sort direction, asc or desc (use together with sort_by).","title":"Sort"},"sort_by":{"anyOf":[{"maxLength":80,"type":"string"},{"type":"null"}],"default":null,"description":"Field name to sort by.","title":"Sort By"}},"required":["agency","endpoint","filter_object"],"title":"filter_dataset_recordsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_example_record":{"post":{"operationId":"get_example_record","summary":"Read a single record of a DOL dataset to see its shape (one record with all fields), without paging through the data. Us","description":"Read a single record of a DOL dataset to see its shape (one record with all fields), without paging through the data. Use for \"Show one example record from the WHD enforcement dataset\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"agency":{"description":"Agency abbreviation used in the dataset's API address, for example 'OSHA' or 'WHD' (take it from the dataset list).","maxLength":40,"title":"Agency","type":"string"},"endpoint":{"description":"The dataset's api_url value from the dataset list, for example 'inspection'.","maxLength":80,"title":"Endpoint","type":"string"},"limit":{"anyOf":[{"maximum":1,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Always 1 for this tool.","title":"Limit"}},"required":["agency","endpoint"],"title":"get_example_recordArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}}}}