Openfoodfacts Tools

Configuration File: openfoodfacts_tools.json Tool Type: Local Tools Count: 2

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_product

  • Type: BaseRESTTool

  • Description: 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 for food products in the Open Food Facts database by name or brand. Returns product detail…

OpenFoodFacts_search_products tool specification

Tool Information:

  • Name: OpenFoodFacts_search_products

  • Type: BaseRESTTool

  • Description: Search for food products in the Open Food Facts database by name or brand. Returns product details including nutrition grades (Nutri-Score A-E), ingredients, nutrients (calories, fat, sugar, salt, protein), and food categories. Over 3 million products from worldwide. No authentication required.

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’, ‘null’]) (optional) Number of results per page (1-100). Default: 10

  • page ([‘integer’, ‘null’]) (optional) Page number for pagination. Default: 1

Example Usage:

query = {
    "name": "OpenFoodFacts_search_products",
    "arguments": {
        "search_terms": "example_value"
    }
}
result = tu.run(query)