{"openapi":"3.1.0","info":{"title":"Apicbase Recipes, Menus and Ingredients (your key) API","version":"0.1.0","description":"Apicbase Recipes, Menus and Ingredients (your key) lets an AI assistant read your own Apicbase Library data through the Apicbase Library API with a key you supply (Apicbase API access token). Read-only: 10 tools (get_default_currency, list_outlets, list_recipes, get_recipe_financials, get_recipe_nutrition, list_ingredients, list_menus, list_menu_courses, list_stock_items, list_supplier_packages)....\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-apicbase-library.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-apicbase-library/docs"},"termsOfService":"https://connectorbay.com/byok-apicbase-library/terms"},"servers":[{"url":"https://byok-apicbase-library.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-apicbase-library/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/get_default_currency":{"post":{"operationId":"get_default_currency","summary":"Show the library's default currency (code, symbol and name) used for all prices and costs. Use for \"What currency does m","description":"Show the library's default currency (code, symbol and name) used for all prices and costs. Use for \"What currency does my Apicbase library use\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"get_default_currencyArguments","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_outlets":{"post":{"operationId":"list_outlets","summary":"List the library's outlets (restaurants, kitchens, locations) with name, external name, time zone and description. Conta","description":"List the library's outlets (restaurants, kitchens, locations) with name, external name, time zone and description. Contact details are left out. Use for \"Which outlets are in my Apicbase library\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"name":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Only outlets whose name matches this text.","title":"Name"},"page":{"anyOf":[{"maximum":100000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"}},"title":"list_outletsArguments","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_recipes":{"post":{"operationId":"list_recipes","summary":"List recipes with class, type, stage, category, cuisine, servings, times, sell price, margin target and dates. Filter by","description":"List recipes with class, type, stage, category, cuisine, servings, times, sell price, margin target and dates. Filter by name, type, stage or outlet. Use for \"Which active dessert recipes are in my Apicbase library\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"name":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Only recipes whose name matches this text.","title":"Name"},"type":{"anyOf":[{"enum":["amuse_bouche","base_recipe","soup","starter","entremet","main_course","dessert","drinks","other"],"type":"string"},{"type":"null"}],"default":null,"description":"Only recipes of this type.","title":"Type"},"stage":{"anyOf":[{"enum":["development","complete","testing","active","discontinued"],"type":"string"},{"type":"null"}],"default":null,"description":"Only recipes at this stage.","title":"Stage"},"outlet":{"anyOf":[{"maxLength":32,"type":"string"},{"type":"null"}],"default":null,"description":"Only recipes linked to this outlet ID.","title":"Outlet"},"page":{"anyOf":[{"maximum":100000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"}},"title":"list_recipesArguments","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_recipe_financials":{"post":{"operationId":"get_recipe_financials","summary":"Get the cost and margin of one recipe for one outlet: food cost, prime cost, target and actual price and profit per serv","description":"Get the cost and margin of one recipe for one outlet: food cost, prime cost, target and actual price and profit per serving, and the cost of each ingredient line. Use for \"What does it cost to make one serving of Apicbase recipe 12345 at outlet 829100725420008\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"recipe_id":{"description":"Recipe ID (from list_recipes).","maxLength":32,"title":"Recipe Id","type":"string"},"outlet":{"description":"ID of the outlet to calculate costs for (from list_outlets).","maxLength":32,"title":"Outlet","type":"string"},"food_cost_mode":{"anyOf":[{"enum":["cheapest","last_ordered","average_stock_value"],"type":"string"},{"type":"null"}],"default":"cheapest","description":"How food cost is calculated.","title":"Food Cost Mode"}},"required":["recipe_id","outlet"],"title":"get_recipe_financialsArguments","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_recipe_nutrition":{"post":{"operationId":"get_recipe_nutrition","summary":"Get the nutrition values of one recipe per 100 g and per portion: energy, fat, saturated fat, carbohydrate, sugar, prote","description":"Get the nutrition values of one recipe per 100 g and per portion: energy, fat, saturated fat, carbohydrate, sugar, protein and salt. Use for \"What are the calories in Apicbase recipe 549990580860002\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"recipe_id":{"description":"Recipe ID (from list_recipes).","maxLength":32,"title":"Recipe Id","type":"string"}},"required":["recipe_id"],"title":"get_recipe_nutritionArguments","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_ingredients":{"post":{"operationId":"list_ingredients","summary":"List ingredients with category, reference IDs, allergen verification, approval, in-use flag and shelf life. Filter by na","description":"List ingredients with category, reference IDs, allergen verification, approval, in-use flag and shelf life. Filter by name, category or in-use. Use for \"Which approved ingredients are in my Apicbase library\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"name":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Only ingredients whose name matches this text.","title":"Name"},"category":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Only ingredients in this category.","title":"Category"},"approved":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True for only approved ingredients, false for only unapproved ones.","title":"Approved"},"in_use":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True for only ingredients in use, false for unused ones.","title":"In Use"},"page":{"anyOf":[{"maximum":100000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"}},"title":"list_ingredientsArguments","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_menus":{"post":{"operationId":"list_menus","summary":"List menus with name, reference, description, start and end date, VAT, margin target and current sell price. Use for \"Wh","description":"List menus with name, reference, description, start and end date, VAT, margin target and current sell price. Use for \"What menus are set up in my Apicbase library\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"name":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Only menus whose name matches this text.","title":"Name"},"page":{"anyOf":[{"maximum":100000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"}},"title":"list_menusArguments","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_menu_courses":{"post":{"operationId":"list_menu_courses","summary":"List the courses of one menu (such as starter or main) with the recipes in each. Use for \"What courses and recipes are i","description":"List the courses of one menu (such as starter or main) with the recipes in each. Use for \"What courses and recipes are in Apicbase menu 390400735470004\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"menu_id":{"description":"Menu ID (from list_menus).","maxLength":32,"title":"Menu Id","type":"string"},"page":{"anyOf":[{"maximum":100000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"}},"required":["menu_id"],"title":"list_menu_coursesArguments","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_stock_items":{"post":{"operationId":"list_stock_items","summary":"List stock items (purchasable products such as a 6 x 33 cl cola pack) with ingredient, content, unit, average price, sto","description":"List stock items (purchasable products such as a 6 x 33 cl cola pack) with ingredient, content, unit, average price, stockable and active flags and GTIN. Use for \"Which stock items does my Apicbase library track\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"name":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Only stock items whose name matches this text.","title":"Name"},"stockable":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True for only stockable items, false for the rest.","title":"Stockable"},"page_size":{"anyOf":[{"maximum":200,"minimum":1,"type":"integer"},{"type":"null"}],"default":50,"description":"How many results per page (1 to 200).","title":"Page Size"},"page":{"anyOf":[{"maximum":100000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"}},"title":"list_stock_itemsArguments","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_supplier_packages":{"post":{"operationId":"list_supplier_packages","summary":"List supplier packages (a supplier's article for a stock item) with supplier, article number, product name, average pric","description":"List supplier packages (a supplier's article for a stock item) with supplier, article number, product name, average price and orderable flag. Use for \"Which supplier articles can I order for Apicbase stock items\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"supplier_id":{"anyOf":[{"maxLength":32,"type":"string"},{"type":"null"}],"default":null,"description":"Only packages of this supplier ID.","title":"Supplier Id"},"active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True for only active packages, false for inactive ones.","title":"Active"},"orderable":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True for only orderable packages, false for the rest.","title":"Orderable"},"page":{"anyOf":[{"maximum":100000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"}},"title":"list_supplier_packagesArguments","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}}}}