Codex Gsfa

v0.2.1
io.github.pipeworx-io/codex-gsfa Checked 1 day ago Published 1 month ago

Codex GSFA — the FAO/WHO General Standard for Food Additives (CXS 192-1995).

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

gsfa_check_use

Answer whether a specific food additive is permitted in a specific food category under the Codex General Standard for Food Additives, and at what maximum level. Returns the maximum use level (a numeric limit such as 10,000 mg/kg, or GMP meaning good manufacturing practice), which GSFA table the permission comes from, the note references that condition it, and whether the permission was stated for that exact food category or inherited from a parent category. Use for questions about whether an additive is allowed in a food, legal use levels, and food additive compliance.

ParameterTypeDescription
additive *stringINS number, name, or synonym — e.g. "461", "methyl cellulose".
food_category *stringGSFA food category number ("13.2") or its name ("complementary foods for infants") — both work. Subcategories inherit parent provisions.

gsfa_search_additive

Find food additives in the Codex GSFA by INS number, name, or synonym. Returns each match with its INS number, name, synonyms, technological functional classes (thickener, preservative, colour, and so on), and how many food-category provisions it holds. Use to resolve an additive name or E-number to its GSFA entry before looking up permitted uses.

ParameterTypeDescription
query *stringINS number, additive name, or synonym.
limitnumberMaximum results (default 20).

gsfa_additive_provisions

List every food category in which a given food additive is permitted under the Codex GSFA, with the maximum use level for each. Separates Table 1 and 2 provisions (which carry a specific maximum level) from Table 3 provisions (permitted under good manufacturing practice with no numeric limit). Use to see the full permitted scope of one additive across all foods.

ParameterTypeDescription
additive *stringINS number, name, or synonym — e.g. "415", "xanthan gum".
limitnumberMaximum provisions returned (default 200).
tablestringFilter to one table: "table1_2" or "table3". Omit for both.

gsfa_food_category_additives

List every food additive permitted in a given Codex GSFA food category, with each maximum use level. Includes provisions inherited from parent categories, since a GSFA provision applies to a category and all of its subcategories. Use to see what additives may legally be used in a particular food.

ParameterTypeDescription
food_category *stringGSFA food category number ("01.4.4") or its name ("cream analogues").
include_inheritedbooleanInclude provisions stated on parent categories (default true).
limitnumberMaximum results (default 200).

gsfa_search_food_categories

Search the Codex GSFA food category system by number or name — for example "cheese", "beverages", or "01.4". Returns matching category numbers and names. Use to find the right GSFA food category number before checking which additives are permitted in it.

ParameterTypeDescription
query *stringCategory number prefix or words from the category name.
limitnumberMaximum results (default 50).

gsfa_notes

Look up the qualifying notes that condition Codex GSFA food additive provisions. GSFA provisions are frequently limited by numbered notes such as "for use in ready-to-drink products only", "as sulphur dioxide", or "on the fat basis", and a maximum use level is not fully specified without them. Give note numbers to resolve, or a search term to find notes by their wording.

ParameterTypeDescription
limitnumberMaximum results when searching (default 25).
note_idsarrayNote numbers to resolve, e.g. [160, 273].
querystringFind notes whose text contains this wording, e.g. "sulphur dioxide".

gsfa_coverage

Report what this Codex GSFA dataset contains and how current it is: the Codex Alimentarius Commission sessions represented, counts of additives, food categories and provisions, and which additive records could not be retrieved. Use to check the freshness and completeness of GSFA answers before relying on them.