{"openapi":"3.1.0","info":{"title":"JSONCargo (BYOK) API","version":"0.1.0","description":"JSONCargo (BYOK) lets an AI assistant read your own JSONCargo data through the JSONCargo API with a key you supply (JSONCargo API key). Read-only: 9 tools (track_container, list_bill_of_lading_containers, get_vessel_position, get_vessel_voyage, get_vessel_specs, find_vessels, find_ports, find_terminals, get_api_key_usage). The BYOK key travels with each request, is used for that one call only and...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-jsoncargo.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-jsoncargo/docs"},"termsOfService":"https://connectorbay.com/byok-jsoncargo/terms"},"servers":[{"url":"https://byok-jsoncargo.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-jsoncargo/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/track_container":{"post":{"operationId":"track_container","summary":"Get the status of an ocean container: type, status, origin and destination ports and terminals, last and next location, ","description":"Get the status of an ocean container: type, status, origin and destination ports and terminals, last and next location, vessel and voyage, and ETAs. Each lookup counts against the plan's monthly quota. Use for \"Where is container MEDU9091004 shipped with MSC\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"tracking_number":{"description":"Full 11-character container number including the 4-letter prefix, for example MEDU9091004.","maxLength":11,"title":"Tracking Number","type":"string"},"shipping_line":{"description":"Shipping line of the container: MAERSK, HAPAG_LLOYD, HMM, ONE, EVERGREEN, MSC, CMA_CGM, COSCO, ZIM, YANG_MING or PIL.","enum":["MAERSK","HAPAG_LLOYD","HMM","ONE","EVERGREEN","MSC","CMA_CGM","COSCO","ZIM","YANG_MING","PIL"],"title":"Shipping Line","type":"string"}},"required":["tracking_number","shipping_line"],"title":"track_containerArguments","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/list_bill_of_lading_containers":{"post":{"operationId":"list_bill_of_lading_containers","summary":"List the container numbers that belong to a bill of lading number at a shipping line. Use for \"Which containers are on b","description":"List the container numbers that belong to a bill of lading number at a shipping line. Use for \"Which containers are on bill of lading 6464150910 with COSCO\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"bol_number":{"description":"Bill of lading number, letters and digits only.","maxLength":40,"title":"Bol Number","type":"string"},"shipping_line":{"description":"Shipping line issuing the bill of lading.","enum":["MAERSK","HAPAG_LLOYD","HMM","ONE","EVERGREEN","MSC","CMA_CGM","COSCO","ZIM","YANG_MING","PIL"],"title":"Shipping Line","type":"string"}},"required":["bol_number","shipping_line"],"title":"list_bill_of_lading_containersArguments","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_vessel_position":{"post":{"operationId":"get_vessel_position","summary":"Get a vessel's live position, speed, course, destination and ETA from AIS by IMO, MMSI or UUID (give exactly one). Use f","description":"Get a vessel's live position, speed, course, destination and ETA from AIS by IMO, MMSI or UUID (give exactly one). Use for \"Where is the vessel with IMO 9525338 right now\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"imo":{"anyOf":[{"maxLength":12,"type":"string"},{"type":"null"}],"default":null,"description":"IMO number of the vessel (give exactly one of imo, mmsi or uuid).","title":"Imo"},"mmsi":{"anyOf":[{"maxLength":12,"type":"string"},{"type":"null"}],"default":null,"description":"MMSI number of the vessel.","title":"Mmsi"},"uuid":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"JSONCargo vessel UUID.","title":"Uuid"}},"title":"get_vessel_positionArguments","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_vessel_voyage":{"post":{"operationId":"get_vessel_voyage","summary":"Get a vessel's live position plus draught, departure and destination port with UN/LOCODEs and departure time, by IMO, MM","description":"Get a vessel's live position plus draught, departure and destination port with UN/LOCODEs and departure time, by IMO, MMSI or UUID (give exactly one). Use for \"Which port did vessel IMO 9525338 leave and where is it heading\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"imo":{"anyOf":[{"maxLength":12,"type":"string"},{"type":"null"}],"default":null,"description":"IMO number of the vessel (give exactly one of imo, mmsi or uuid).","title":"Imo"},"mmsi":{"anyOf":[{"maxLength":12,"type":"string"},{"type":"null"}],"default":null,"description":"MMSI number of the vessel.","title":"Mmsi"},"uuid":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"JSONCargo vessel UUID.","title":"Uuid"}},"title":"get_vessel_voyageArguments","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_vessel_specs":{"post":{"operationId":"get_vessel_specs","summary":"Get static specifications of a vessel (flag, type, tonnage, TEU, dimensions, speed, build year, home port) by IMO, MMSI ","description":"Get static specifications of a vessel (flag, type, tonnage, TEU, dimensions, speed, build year, home port) by IMO, MMSI or UUID (give exactly one). Use for \"What is the capacity and build year of vessel IMO 9525338\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"imo":{"anyOf":[{"maxLength":12,"type":"string"},{"type":"null"}],"default":null,"description":"IMO number of the vessel (give exactly one of imo, mmsi or uuid).","title":"Imo"},"mmsi":{"anyOf":[{"maxLength":12,"type":"string"},{"type":"null"}],"default":null,"description":"MMSI number of the vessel.","title":"Mmsi"},"uuid":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"JSONCargo vessel UUID.","title":"Uuid"}},"title":"get_vessel_specsArguments","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/find_vessels":{"post":{"operationId":"find_vessels","summary":"Search vessels by name, type, flag, tonnage, length, breadth or build year; results are paged with a cursor in meta.next","description":"Search vessels by name, type, flag, tonnage, length, breadth or build year; results are paged with a cursor in meta.next. Use for \"Find container ships built after 2018 with more than 100000 gross tonnage\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"name":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Vessel name or part of it.","title":"Name"},"fuzzy":{"anyOf":[{"maximum":1,"minimum":0,"type":"integer"},{"type":"null"}],"default":0,"description":"1 for approximate name matching, 0 for exact.","title":"Fuzzy"},"type_specific":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Specific vessel type, for example 'Container Ship'.","title":"Type Specific"},"country_iso":{"anyOf":[{"maxLength":2,"type":"string"},{"type":"null"}],"default":null,"description":"Flag state as a two-letter country code.","title":"Country Iso"},"gross_tonnage_min":{"anyOf":[{"minimum":0,"type":"integer"},{"type":"null"}],"default":null,"description":"Minimum gross tonnage.","title":"Gross Tonnage Min"},"gross_tonnage_max":{"anyOf":[{"minimum":0,"type":"integer"},{"type":"null"}],"default":null,"description":"Maximum gross tonnage.","title":"Gross Tonnage Max"},"length_min":{"anyOf":[{"minimum":0,"type":"number"},{"type":"null"}],"default":null,"description":"Minimum length in meters.","title":"Length Min"},"length_max":{"anyOf":[{"minimum":0,"type":"number"},{"type":"null"}],"default":null,"description":"Maximum length in meters.","title":"Length Max"},"year_built_min":{"anyOf":[{"maximum":2100,"minimum":1800,"type":"integer"},{"type":"null"}],"default":null,"description":"Earliest build year.","title":"Year Built Min"},"year_built_max":{"anyOf":[{"maximum":2100,"minimum":1800,"type":"integer"},{"type":"null"}],"default":null,"description":"Latest build year.","title":"Year Built Max"},"next":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Cursor from meta.next of the previous page.","title":"Next"}},"title":"find_vesselsArguments","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/find_ports":{"post":{"operationId":"find_ports","summary":"Find ports by name, country, port type, or by coordinates and radius (give at least one filter); returns UN/LOCODE, coor","description":"Find ports by name, country, port type, or by coordinates and radius (give at least one filter); returns UN/LOCODE, coordinates and type. Use for \"Which ports are called London\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"name":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Port name or part of it.","title":"Name"},"country_iso":{"anyOf":[{"maxLength":2,"type":"string"},{"type":"null"}],"default":null,"description":"Two-letter country code.","title":"Country Iso"},"port_type":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Port type, for example 'Port'.","title":"Port Type"},"lat":{"anyOf":[{"maximum":90,"minimum":-90,"type":"number"},{"type":"null"}],"default":null,"description":"Latitude for a radius search.","title":"Lat"},"lon":{"anyOf":[{"maximum":180,"minimum":-180,"type":"number"},{"type":"null"}],"default":null,"description":"Longitude for a radius search.","title":"Lon"},"radius":{"anyOf":[{"minimum":0,"type":"number"},{"type":"null"}],"default":null,"description":"Search radius around lat/lon.","title":"Radius"},"fuzzy":{"anyOf":[{"maximum":1,"minimum":0,"type":"integer"},{"type":"null"}],"default":null,"description":"1 for approximate name matching.","title":"Fuzzy"}},"title":"find_portsArguments","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/find_terminals":{"post":{"operationId":"find_terminals","summary":"List container terminals of a port by UN/LOCODE: terminal name, operator, coordinates, address and website. Use for \"Whi","description":"List container terminals of a port by UN/LOCODE: terminal name, operator, coordinates, address and website. Use for \"Which container terminals are in Chongqing (CNCQI)\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"unlocode":{"description":"UN/LOCODE of the port, at least 2 characters, for example CNCQI.","maxLength":5,"title":"Unlocode","type":"string"},"page":{"anyOf":[{"maximum":10000,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Page number.","title":"Page"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Results per page.","title":"Limit"}},"required":["unlocode"],"title":"find_terminalsArguments","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_api_key_usage":{"post":{"operationId":"get_api_key_usage","summary":"Show the key's plan, total requests allowed, requests used and requests remaining this period. Use for \"How many JSONCar","description":"Show the key's plan, total requests allowed, requests used and requests remaining this period. Use for \"How many JSONCargo requests do I have left\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"get_api_key_usageArguments","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}}}}