{"uid":"cap_E4aYDGF5YGNYPzMq8zfJH","slug":"writerslogic-allergen-flag-scanner-c83c2186","name":"WritersLogic Allergen Flag Scanner","description":"Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.","url":"https://agents.writerslogic.com/api/v1/allergen-flag?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"declared":{"type":"array","items":{"enum":["milk","egg","fish","crustacean","mollusc","peanut","tree-nut","wheat","gluten-cereal","soy","sesame","celery","mustard","lupin","sulphites"],"type":"string"},"maxItems":15,"description":"Allergen keys the label declares. Any detected, non-precautionary allergen missing from this list fails. For jurisdictions=eu, wheat and gluten-cereal cover each other (one Annex II entry)."},"extraTerms":{"type":"array","items":{"type":"object","required":["term","allergen"],"properties":{"term":{"type":"string","maxLength":60,"description":"Extra term, at most 6 words."},"allergen":{"enum":["milk","egg","fish","crustacean","mollusc","peanut","tree-nut","wheat","gluten-cereal","soy","sesame","celery","mustard","lupin","sulphites"],"type":"string"}}},"maxItems":100,"description":"Caller synonyms (for example a brand's own ingredient name), matched as literal words."},"ingredients":{"type":"string","maxLength":20000,"description":"Ingredient list or label text, at most 20000 characters."},"jurisdictions":{"enum":["eu","us","both"],"type":"string","description":"Which list(s) to apply. Default both. EU adds celery, mustard, lupin, molluscs, sulphites and gluten cereals (rye, barley, oats); the US list has no such entries."}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_YaDuHQeGNG5RthanU4vlU","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Scans ingredient list text for EU and US regulated allergen terms, returning matched spans with offsets, allergen identity, jurisdiction, and may-contain status, flagging any detected-but-undeclared allergens.","exampleAgentPrompt":"Scan this ingredient list for both EU and US allergens — the label declares milk, wheat, and soy — and flag anything detected that isn't declared: 'Water, wheat flour, skimmed milk powder, egg yolk, sesame seeds, modified starch, salt, yeast extract, rapeseed oil, barley malt extract.'","exampleUseCases":[{"title":"Recipe allergen audit for food app","prompt":"Check this recipe ingredient list for all EU and US allergens and tell me which ones are present, whether they appear in any may-contain clauses, and the exact text spans where they were found: 'Ingredients: oat flakes, lupin flour, peanut oil, sunflower seeds, glucose syrup, salt.'"},{"title":"Label compliance check for undeclared allergens","prompt":"I have a product label that declares only peanut and soy — scan this full ingredient text for both EU and US allergens and tell me if anything undeclared is detected: 'Wheat starch, skimmed milk solids, egg white powder, sesame oil, may contain traces of celery.'"},{"title":"EU-only allergen scan for import review","prompt":"Run an EU-only allergen scan on this ingredient list and highlight any mustard, celery, lupin, molluscs, or sulphites present, with their character positions: 'Rapeseed oil, mustard seeds, celery root extract, water, vinegar, salt, spices, sulphur dioxide (220).'"}],"resultDescription":"Returns a list of matched spans each containing: the matched text, start and end character offsets, the allergen key (e.g. 'milk', 'sesame'), the jurisdiction that lists it (eu, us, or both), and a boolean indicating whether the match is within a may-contain/precautionary clause. Also returns a list of undeclared allergen failures — allergens detected but absent from the caller-supplied declared list (excluding precautionary mentions).","failureModes":["Ingredient text exceeds 20,000 character limit — request rejected","Invalid allergen key in declared array — schema validation error","extraTerms entry exceeds 60 characters or 6 words — rejected","No matches found does not confirm allergen-free status — absent match is not a clearance","Sulphite threshold (10 mg/kg EU) not evaluated — quantity judgments not supported","Refining exemptions not applied — highly refined oils flagged even if legally exempt","Cross-contact risk not assessed — only label text is scanned","Payment failure (x402) — 402 response with payment details required"],"whenToPreferThis":"Use this endpoint when you need automated, text-based allergen term detection against the official EU Regulation 1169/2011 Annex II (14 allergens) and/or US FALCPA+FASTER Act (9 allergens) lexicons, particularly when checking whether a label's declared allergen list covers all detected allergens. It is ideal for agents automating food label review, recipe scanning, or import compliance pre-checks. Do not use it as a substitute for formal compliance assessment, quantity-based thresholds, or cross-contact risk evaluation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-18T18:35:42.734Z","isFirstParty":false,"canonicalSlug":"writerslogic-allergen-flag-scanner-c83c2186"}