Skip to main content
Glama

Food allergen check

wever_food-allergen-check
Read-only

Agent Food Safety Records: submit allergen control and labeling records with the formulation and production records they answer to: each formulation record with its id, product, the allergens it contains and the moment last changed; each label with its id, reference, product, the allergens it declares, the claims it makes such as Peanut-free, whether it is current or retired and the moment approved; each production run with its id, reference, line, product and the moments it started and ended; each changeover cleaning or verification with its id, reference, line, kind and the moment recorded. The signed report gives the products and the labels, each current label’s declared allergens against the formulation record, each allergen changeover between runs on a line against a cleaning or verification between them, each current label against the latest formulation change, and each allergen-free claim against the allergens the formulation carries, and counts them, and names divergent allergen records: a product whose label record declares allergens that differ from the formulation record, an allergen changeover with no cleaning or verification record between production runs, a label recorded as current that predates the latest formulation change, and an allergen-free claim in the records for a product the formulation record does not support; then a label naming a product no formulation record holds and a changeover record naming a line no production run holds, with the fix for each and what would change the verdict. No labels and no production runs, records with no formulations beside them, or a current label with no approval date beside a dated formulation leaves those points unverified. Products and lines compare by their words without case or punctuation, allergens compare by their usual names with dairy read as milk, soya as soy and plurals folded, a label is read against its product’s latest formulation, a changeover is a run carrying an allergen the next run on the same line does not, and an allergen-free claim is read for the allergens it excludes, with gluten-free excluding wheat, barley and rye and nut-free excluding peanut and every tree nut. This reads whether every allergen label says what the formulation holds and every changeover was cleaned. Verdict food_allergen_divergent, food_allergen_partial, food_allergen_unverified or food_allergen_consistent. POST /api/food-allergen-check. Reads the food safety records supplied in the call and returns a signed report with the verdict, the evidence read, the findings with their fixes, and what would change the verdict; it reads the records as supplied only: it inspects no facility, takes no temperature, contacts no regulator or auditor and issues no certification, which stay with the business, its food safety team, its regulators and its auditors, and the records stay in the report, with no network request, fetch, message, payment or external write. Agent Food Safety Records reads a food business’s own safety records: food safety and HACCP plan records, critical-control-point and temperature monitoring logs, health inspection and third-party audit reports, recall and traceability records, supplier approval and receiving records, sanitation records, allergen and labeling records and corrective action records, each against the monitoring, inspection and corrective-action records, the corrective actions and the schedule, the plan’s limits and equipment, the lot traceability and inventory records, the supplier approvals and certificates, the cleaning schedule and safety data sheets, the formulation and production records or the deviations and verifications on record. The family’s ground is the paper trail behind the food: what the plan requires, what the logs show, what the inspectors found, and whether the fixes and the traceability hold up; the Agent Customs Records family reads the border filings for goods as trade records, and the Agent Automotive family reads vehicle records, while this family reads neither. Paid URL: 0.10 USDC per call on Base via x402 exact, with the shared 10 signed-wallet free calls per rolling 30 days. Bind X-Wever-Wallet-Proof to the exact JSON arguments and the tool route. Returns a report with an Ed25519 signed receipt. Contract: /api/agent-food-safety-records-contract. Human page: https://weverlabs.com/agent-food-safety-records/.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "formulations": "<formulations>",
      "labels": "<labels>",
      "runs": "<runs>",
      "changeovers": "<changeovers>"
    },
    "name": "wever_food-allergen-check"
  }
}

Input Schema

NameRequiredDescriptionDefault
runsYesEach production run.
labelNoOptional name recorded in the report.
labelsYesEach label record.
changeoversYesEach changeover cleaning or verification.
formulationsYesEach formulation record.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only declare the safety profile (readOnly, non-destructive, closed-world), while the description adds substantial behavior the annotations cannot carry: the four possible verdict values, the exact conditions that leave a point 'unverified', the matching rules (case- and punctuation-insensitive, dairy read as milk, gluten-free excluding wheat/barley/rye), the signed Ed25519 receipt in the response, the x402 price of 0.10 USDC with 10 free calls per 30 days, and the required X-Wever-Wallet-Proof binding to the JSON arguments. It also explicitly disclaims facility inspection, temperature taking, regulator contact and any network or external write, which is consistent with the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single dense block of run-on sentences with no headings or bullets, and it repeats itself (the verdict names, the report contents and the 'what would change the verdict' phrasing each surface multiple times). A large trailing portion describes the whole Agent Food Safety Records family and contrasts it with the customs and automotive families, which is boilerplate that does not help an agent call this specific tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a four-array, nested-record tool with no output schema, the description is unusually complete: it specifies what each record type must contain, what the returned report includes (verdict, evidence read, findings with fixes, what would change the verdict), the exact failure modes that yield 'unverified', the comparison semantics, and the payment and wallet-proof requirements. An agent could construct a correct call and interpret the result without further information.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, but the description goes well beyond field documentation: it explains how the records are interpreted (a changeover is a run carrying an allergen the next run on the same line does not; labels are read against the product's latest formulation; allergen-free claims are read for the allergens they exclude) and gives the normalization rules used for comparison. That is genuine semantic meaning an agent cannot get from the JSON schema alone, lifting it above the baseline 3.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific analysis: it cross-reads allergen label declarations against formulation records, changeovers against cleaning/verification records, and allergen-free claims against formulation contents, then issues one of four named verdicts. That is far more precise than a restatement of the name. It does not, however, name or contrast any sibling such as wever_food-inspection-check or wever_food-temperature-check, so the boundary with the rest of the food family is left to inference.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied rather than stated: 'This reads whether every allergen label says what the formulation holds and every changeover was cleaned' tells the agent what question it answers, and the exclusion list (inspects no facility, takes no temperature) implicitly routes temperature or inspection work elsewhere. No sibling tool is named and no explicit when-not-to-use rule is given, so the agent must infer the alternative.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources