Skip to main content
Glama

Food safety plan check

wever_food-safety-plan-check
Read-only

Agent Food Safety Records: submit a food safety or HACCP plan record with the monitoring, inspection and corrective-action records it answers to: the plan with its reference, the version on file, the facility it covers, the plan elements the record shows and the plan elements the facility’s standard requires; each hazard the plan names with its id, reference, the hazard, the process step and the critical control point that controls it; each critical control point the plan lists with its id, reference, name and the critical limit it states; each monitoring log record with its id, reference, the control point logged, the hazard, the plan version it cites and the moment logged; each other facility record citing the plan (inspection, audit, corrective_action, verification or training) with its id, reference, kind, the plan version it cites and the moment dated. The signed report gives the plan and the hazards, each hazard against a monitoring record behind it, each control point the logs monitor against the plan’s list, the plan version on file against the version every log and record cites, and each required element against the elements the plan shows, and counts them, and names divergent food safety plan records: a hazard the plan names with no monitoring record behind it, a critical control point in the logs that the plan does not list, a plan version on file that the facility’s other records do not match, and a required plan element the record does not show; then a critical control point the plan lists with no critical limit stated and one no hazard names, with the fix for each and what would change the verdict. No hazards, hazards with no monitoring logs beside them, no plan version beside records that cite one, or no required elements leaves those points unverified. Hazards, control points, logs and records match by letters and digits, a hazard reads as monitored when a log names it or the control point that controls it, versions compare by letters and digits, and a required element reads as shown when its words agree with a plan element, plurals folded. This reads the food safety plan as a whole against the monitoring, inspection and corrective-action records behind every hazard and control point it names. Verdict food_safety_plan_divergent, food_safety_plan_partial, food_safety_plan_unverified or food_safety_plan_consistent. POST /api/food-safety-plan-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": {
      "plan": "<plan>",
      "hazards": "<hazards>",
      "control_points": "<control_points>",
      "logs": "<logs>",
      "records": "<records>"
    },
    "name": "wever_food-safety-plan-check"
  }
}

Input Schema

NameRequiredDescriptionDefault
logsYesEach monitoring log.
planYes
labelNoOptional name recorded in the report.
hazardsYesEach hazard the plan names.
recordsYesEach other record citing the plan.
control_pointsYesEach critical control point listed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare readOnly/openWorld=false, and the description adds substantial behaviour beyond them: matching rules (letters-and-digits comparison, plural folding for required elements), what each verdict means, what the report contains, and an explicit non-action list (inspects no facility, takes no temperature, contacts no regulator or auditor, issues no certification, no network request, fetch, message, payment or external write). It also discloses the x402 price, the free-call allowance and the X-Wever-Wallet-Proof binding requirement, which an agent needs before calling.

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 definition is a single sprawling run-on that front-loads an exhaustive field inventory before stating what the tool actually returns, and repeats the 'Agent Food Safety Records' framing, the family ground, the contract URL and the human page. The matching rules and pricing are genuinely load-bearing, but large stretches (family comparison with customs and automotive, repeated record enumerations) could be cut without losing any decision-relevant information.

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

Completeness4/5

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

For a five-array, deeply nested tool with no output schema, the description does the heavy lifting: it names the verdicts, the report contents (evidence read, findings with fixes, what would change the verdict), the matching rules and the failure modes that downgrade to unverified. The only gap is that the verdict names are never crisply defined beyond their trigger conditions, leaving the boundary between 'partial' and 'divergent' to inference.

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

Parameters4/5

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

With schema coverage at 83% the baseline is 3, and the description earns more by specifying semantics the schema cannot: how hazards, control points, logs and records are joined, when a hazard 'reads as monitored', how versions compare, and when a required element 'reads as shown'. It also enumerates each nested field (plan ref/version/facility/elements/required; hazard id/ref/step/control point; control point limit; log moment) so an agent can populate the arrays without schema archaeology.

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

Purpose5/5

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

The description states a concrete verb and resource chain: submit a food safety/HACCP plan record together with the hazards, critical control points, monitoring logs and facility records it answers to, and receive a signed report with a verdict. It distinguishes the check from neighbouring concepts by naming the four verdicts and by explicitly excluding the Agent Customs Records and Agent Automotive families, and it scopes itself as reading 'the food safety plan as a whole' rather than a single record type.

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

Usage Guidelines4/5

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

Usage context is clear: the tool is for adjudicating a plan against the monitoring, inspection and corrective-action records behind every hazard and control point it names, and the unverified branch is spelled out ('No hazards, hazards with no monitoring logs beside them… leaves those points unverified'). What is missing is explicit routing to the sibling single-record checks (food-temperature, food-inspection, food-corrective-action) when only one record type is in hand, and no stated prerequisites beyond the wallet-proof binding.

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