Openfoodfacts Tools#
Configuration File: openfoodfacts_tools.json
Tool Type: Local
Tools Count: 3
This page contains all tools defined in the openfoodfacts_tools.json configuration file.
Available Tools#
OpenFoodFacts_get_product (Type: BaseRESTTool)#
Get detailed information about a specific food product by barcode using the Open Food Facts datab…
OpenFoodFacts_get_product tool specification
Tool Information:
Name:
OpenFoodFacts_get_productType:
BaseRESTToolDescription: Get detailed information about a specific food product by barcode using the Open Food Facts database. Returns complete nutritional data, ingredients, allergens, Nutri-Score, eco-score, and product images. No authentication required.
Parameters:
barcode(string) (required) Product barcode (EAN-13 or UPC). Examples: ‘3017620422003’ (Nutella 400g), ‘0737628064502’ (Annie Chun’s), ‘8001505005592’
Example Usage:
query = {
"name": "OpenFoodFacts_get_product",
"arguments": {
"barcode": "example_value"
}
}
result = tu.run(query)
OpenFoodFacts_search_products (Type: BaseRESTTool)#
Search Open Food Facts products by name or brand. Returns one page of product and nutrition data …
OpenFoodFacts_search_products tool specification
Tool Information:
Name:
OpenFoodFacts_search_productsType:
BaseRESTToolDescription: Search Open Food Facts products by name or brand. Returns one page of product and nutrition data plus total/continuation metadata. Follow metadata.next_page while metadata.has_more is true. The upstream field page_count means records on the current page, not total pages; use metadata.total_pages instead.
Parameters:
search_terms(string) (required) Food product name or brand to search for. Examples: ‘nutella’, ‘coca cola’, ‘oreo’, ‘kelloggs cornflakes’, ‘olive oil’page_size(integer) (optional) Number of results per page (1-100). Defaults to 50, which is what an unparameterised call has always returned from this endpoint – pass a smaller number for a lighter response.page(integer) (optional) Page number for pagination. Default: 1
Example Usage:
query = {
"name": "OpenFoodFacts_search_products",
"arguments": {
"search_terms": "example_value"
}
}
result = tu.run(query)