{"openapi":"3.1.0","info":{"title":"Shimbiri passage planner API","version":"1.0.0","summary":"Plan coastal passages from stored marine forecasts, tides and charts.","description":"The same tools as Shimbiri's MCP server at https://api.shimbiri.ai/mcp. Plans coastal passages from the marine forecasts, tides and charts Shimbiri already holds. Shimbiri plans passages worldwide wherever its forecasts reach, using global weather models and its own depth model. Official marine warnings, forecasts and tide tables are built in for Australia; official tide tables and high-seas warnings for New Zealand; more regions are added as their official sources are bound; elsewhere it answers from its own models and labels them as not the official forecast. Every passage answer (plan_passage, departure_windows, tide_gates) carries a link that opens the same plan on shimbiri.ai, with its sources and model run times. Not for navigation.","termsOfService":"https://shimbiri.ai/terms","contact":{"name":"Shimbiri support","email":"support@shimbiri.ai","url":"https://shimbiri.ai/support"}},"servers":[{"url":"https://api.shimbiri.ai"}],"security":[{"oauth":["assistant.plan"]},{"apiKey":[]}],"paths":{"/v1/find_place":{"post":{"operationId":"find_place","summary":"Find a port, marina or anchorage","description":"Resolve a place name to a position from Shimbiri's coastal gazetteer (no web lookup).","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"state":{"type":"string","enum":["ACT","NSW","NT","QLD","SA","TAS","VIC","WA","FJ","NZ"],"description":"Narrows a name shared across places to one state or country: an Australian state or territory (ACT, NSW, NT, QLD, SA, TAS, VIC, WA), FJ (Fiji) or NZ (New Zealand). Each candidate carries its own."},"nat_id":{"type":"string","minLength":1,"maxLength":80,"description":"The nat_id (or bar_id) of one candidate an ambiguous answer listed: chooses it."}},"required":["name"],"additionalProperties":false}}}},"responses":{"200":{"description":"The answer, in the envelope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"No live Shimbiri API key."},"404":{"description":"The plan_ref is not valid for this key, or has expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Refusal"}}}},"422":{"description":"The arguments were not usable; the message says why.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Refusal"}}}},"429":{"description":"This key's share for today, or its calls in flight, are used up.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Refusal"}}},"headers":{"Retry-After":{"description":"Seconds until it may be asked again.","schema":{"type":"integer"}}}},"502":{"description":"A planner door refused; the message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Refusal"}}}},"503":{"description":"Cut short at the deadline; ask again shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Refusal"}}},"headers":{"Retry-After":{"description":"Seconds until it may be asked again.","schema":{"type":"integer"}}}}},"x-openai-isConsequential":false}},"/v1/plan_passage":{"post":{"operationId":"plan_passage","summary":"Plan a passage","description":"Plan a coastal passage between two positions for a stated boat and departure, from the forecasts Shimbiri already holds.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"from_lat":{"type":"number","minimum":-90,"maximum":90},"from_lon":{"type":"number","minimum":-180,"maximum":180},"from_name":{"type":"string","maxLength":80},"to_lat":{"type":"number","minimum":-90,"maximum":90},"to_lon":{"type":"number","minimum":-180,"maximum":180},"to_name":{"type":"string","maxLength":80},"leave_after":{"type":"string","description":"Earliest departure. Local time at the departure port, YYYY-MM-DDTHH:mm (or an ISO 8601 time with its UTC offset)."},"leave_before":{"type":"string","description":"Latest departure (optional). Local time at the departure port, YYYY-MM-DDTHH:mm (or an ISO 8601 time with its UTC offset)."},"boat":{"type":"object","properties":{"type":{"type":"string","enum":["sail","motorsail","motor","demo"],"description":"sail, motorsail or motor; or demo for Shimbiri Yacht Demo, the demonstration yacht with her real polars."},"draft_m":{"type":"number","exclusiveMinimum":0,"maximum":30,"description":"Draft in metres (not needed for demo)."},"speed_kt":{"type":"number","exclusiveMinimum":0,"maximum":25,"description":"Cruising or motoring speed in knots (not needed for demo)."}},"required":["type"],"additionalProperties":false}},"required":["from_lat","from_lon","to_lat","to_lon","leave_after","boat"],"additionalProperties":false}}}},"responses":{"200":{"description":"The answer, in the envelope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"No live Shimbiri API key."},"404":{"description":"The plan_ref is not valid for this key, or has expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Refusal"}}}},"422":{"description":"The arguments were not usable; the message says why.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Refusal"}}}},"429":{"description":"This key's share for today, or its calls in flight, are used up.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Refusal"}}},"headers":{"Retry-After":{"description":"Seconds until it may be asked again.","schema":{"type":"integer"}}}},"502":{"description":"A planner door refused; the message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Refusal"}}}},"503":{"description":"Cut short at the deadline; ask again shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Refusal"}}},"headers":{"Retry-After":{"description":"Seconds until it may be asked again.","schema":{"type":"integer"}}}}},"x-openai-isConsequential":false}},"/v1/departure_windows":{"post":{"operationId":"departure_windows","summary":"Compare departure times","description":"Compare 4 or 16 departure times across a window for a passage planned with plan_passage: wind, sea and timing for each, in departure order. Options marked dominated_by are beaten on every measure by another. Quote each option's when.aboard_label, which is local time; departure is UTC.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"plan_ref":{"type":"string","description":"The plan_ref returned by plan_passage. It works only for the caller that made it, for about a day."},"leave_after":{"type":"string","description":"Window start (optional; defaults to the plan's). Local time at the departure port, YYYY-MM-DDTHH:mm (or an ISO 8601 time with its UTC offset)."},"leave_before":{"type":"string","description":"Window end (optional; defaults to 24 h after the start). Local time at the departure port, YYYY-MM-DDTHH:mm (or an ISO 8601 time with its UTC offset)."},"count":{"type":"integer","enum":[4,16],"default":4}},"required":["plan_ref"],"additionalProperties":false}}}},"responses":{"200":{"description":"The answer, in the envelope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"No live Shimbiri API key."},"404":{"description":"The plan_ref is not valid for this key, or has expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Refusal"}}}},"422":{"description":"The arguments were not usable; the message says why.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Refusal"}}}},"429":{"description":"This key's share for today, or its calls in flight, are used up.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Refusal"}}},"headers":{"Retry-After":{"description":"Seconds until it may be asked again.","schema":{"type":"integer"}}}},"502":{"description":"A planner door refused; the message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Refusal"}}}},"503":{"description":"Cut short at the deadline; ask again shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Refusal"}}},"headers":{"Retry-After":{"description":"Seconds until it may be asked again.","schema":{"type":"integer"}}}}},"x-openai-isConsequential":false}},"/v1/tide_gates":{"post":{"operationId":"tide_gates","summary":"Bars and tidal gates on the route","description":"Bar crossings, tidal gates and wind-against-tide stretches on a passage planned with plan_passage, with times for a given departure. Not for navigation.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"plan_ref":{"type":"string","description":"The plan_ref returned by plan_passage. It works only for the caller that made it, for about a day."},"departure":{"type":"string","description":"Departure (optional; defaults to the plan's). Local time at the departure port, YYYY-MM-DDTHH:mm (or an ISO 8601 time with its UTC offset)."}},"required":["plan_ref"],"additionalProperties":false}}}},"responses":{"200":{"description":"The answer, in the envelope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"No live Shimbiri API key."},"404":{"description":"The plan_ref is not valid for this key, or has expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Refusal"}}}},"422":{"description":"The arguments were not usable; the message says why.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Refusal"}}}},"429":{"description":"This key's share for today, or its calls in flight, are used up.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Refusal"}}},"headers":{"Retry-After":{"description":"Seconds until it may be asked again.","schema":{"type":"integer"}}}},"502":{"description":"A planner door refused; the message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Refusal"}}}},"503":{"description":"Cut short at the deadline; ask again shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Refusal"}}},"headers":{"Retry-After":{"description":"Seconds until it may be asked again.","schema":{"type":"integer"}}}}},"x-openai-isConsequential":false}},"/v1/seamanship_reference":{"post":{"operationId":"seamanship_reference","summary":"Look up seamanship reference","description":"Search or read Shimbiri's source-verified seamanship reference by question, topic slug or ID. Returns approved cards, cited official sources and the shimbiri.ai/answers link. General seamanship education; not for navigation.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","minLength":1,"maxLength":200,"description":"Question, keywords, topic slug (e.g. beaufort-table) or topic ID."},"region":{"type":"string","minLength":1,"maxLength":60,"description":"Optional jurisdiction or region filter (e.g. Australia, Queensland)."},"limit":{"type":"integer","minimum":1,"maximum":5,"default":3,"description":"Maximum number of matching cards to return (1-5)."}},"required":["query"],"additionalProperties":false}}}},"responses":{"200":{"description":"The answer, in the envelope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"No live Shimbiri API key."},"404":{"description":"The plan_ref is not valid for this key, or has expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Refusal"}}}},"422":{"description":"The arguments were not usable; the message says why.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Refusal"}}}},"429":{"description":"This key's share for today, or its calls in flight, are used up.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Refusal"}}},"headers":{"Retry-After":{"description":"Seconds until it may be asked again.","schema":{"type":"integer"}}}},"502":{"description":"A planner door refused; the message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Refusal"}}}},"503":{"description":"Cut short at the deadline; ask again shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Refusal"}}},"headers":{"Retry-After":{"description":"Seconds until it may be asked again.","schema":{"type":"integer"}}}}},"x-openai-isConsequential":false}}},"components":{"securitySchemes":{"oauth":{"type":"oauth2","description":"Sign in when your assistant asks: Shimbiri opens a short page to approve, with no account needed. A partner API key ('Bearer shk_...') also works.","flows":{"authorizationCode":{"authorizationUrl":"https://account.shimbiri.ai/oauth/authorize","tokenUrl":"https://account.shimbiri.ai/oauth/token","refreshUrl":"https://account.shimbiri.ai/oauth/token","scopes":{"assistant.plan":"Plan passages and read the plan link."}}}},"apiKey":{"type":"http","scheme":"bearer","bearerFormat":"shk_ API key","description":"A Shimbiri partner API key, one per app."}},"schemas":{"Envelope":{"type":"object","description":"Every answer: the planner door's own JSON, the link that opens the same plan on shimbiri.ai, what it rests on, and what Shimbiri does not hold. Not for navigation.","properties":{"answer":{"description":"The planner door's own answer, unchanged."},"link":{"type":"string","format":"uri","description":"Opens the same plan on shimbiri.ai. Give it to the sailor. Present on a passage answer (plan_passage, departure_windows, tide_gates); omitted when nothing was planned (find_place, outside_cover). Never make one up."},"sources":{"type":"array","items":{"type":"object","properties":{"dataset_id":{"type":"string"},"title":{"type":"string"},"run":{"type":"string"}},"required":["dataset_id","title"]}},"as_of":{"type":["string","null"],"description":"The oldest forecast run the answer rests on."},"not_for_navigation":{"const":true},"notice":{"type":"string"},"held":{"type":"object","additionalProperties":{"type":"string"},"description":"Per layer: held, none_held or outside_cover."},"plan_ref":{"type":"string","description":"Pass to departure_windows and tide_gates. Bound to your key."},"says":{"type":"string","description":"A plain sentence when the planner did not plan."}},"required":["answer","sources","as_of","not_for_navigation","held"]},"Refusal":{"type":"object","properties":{"refused":{"type":"string"},"message":{"type":"string"},"retry_after_s":{"type":["integer","null"]}},"required":["refused","message"]}}}}