Skip to main content
Glama

Food corrective action check

wever_food-corrective-action-check
Read-only

Agent Food Safety Records: submit corrective action records across the whole food safety file with the deviations and verifications they answer to: the moment the records are read at; each deviation or violation with its id, reference, the record type it came from (plan, temperature, inspection, sanitation, allergen, supplier, recall or other), what deviated as a code or short wording, and the moment recorded; each corrective action with its id, reference, the deviation it answers, whether it is open or closed, the moment due and the moment closed; each verification with its id, reference, the corrective action it verifies and the moment verified. The signed report gives the deviations and the actions, each deviation against a corrective action recorded against it, each action recorded as closed against a verification entry, each closed action’s deviation against the same deviation recurring in a later record, and each open action against its stated due date, and counts them, and names divergent corrective action records: a deviation or violation with no corrective action recorded, an action recorded as closed with no verification entry, the same deviation recurring in later records after its action was closed, and an action still open past its stated due date; then an action naming a deviation the records do not hold and a verification naming an action they do not hold, with the fix for each and what would change the verdict. No deviations, or open actions with due dates and no reading moment, leaves those points unverified. Deviations, actions and verifications match by letters and digits, a deviation recurs when its code and record type appear again in a record dated after its action closed, an open action is overdue once the reading moment passes its due date, and dates compare by the day when either carries no time. This reads the fix-and-verify trail across every record type: wever_food-inspection-check reads the inspection findings themselves, while the corrective action check reads whether every deviation and violation in the file was fixed, verified and stayed fixed. Verdict food_corrective_action_divergent, food_corrective_action_partial, food_corrective_action_unverified or food_corrective_action_consistent. POST /api/food-corrective-action-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": {
      "deviations": "<deviations>",
      "actions": "<actions>",
      "verifications": "<verifications>"
    },
    "name": "wever_food-corrective-action-check"
  }
}

Input Schema

NameRequiredDescriptionDefault
as_ofNoThe reading moment, such as 2026-03-02.
labelNoOptional name recorded in the report.
actionsYesEach corrective action.
deviationsYesEach deviation or violation.
verificationsYesEach verification.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare read-only, non-destructive, closed-world behavior, but the description adds substantial context: signed report and Ed25519 receipt, x402 pricing and free-call quota, wallet-proof binding, and explicit statements that it performs no network request, payment or external write and inspects no facility. It also explains verdict categories and matching/recurrence rules. This is rich behavioral disclosure beyond annotations.

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

Conciseness3/5

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

The core purpose and verdict are front-loaded, but the description is very long and repetitive, with dense run-on sentences and repeated explanations of the report and matching rules. For a complex tool some length is justified, but the prose could be tightened substantially.

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?

No output schema exists, so the description must explain returns, and it does: signed report, verdict values, evidence, findings with fixes, and what would change the verdict. It also covers edge cases, auth/payment, and scope limits. Complete for this complexity.

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?

Schema coverage is 100%, so the schema already documents all five parameters and nested fields. The description still adds semantics not in the schema: deviations, actions and verifications match by letters and digits, recurrence is defined by code plus record type after closure, overdue is measured from the reading moment, and dates compare by day when time is absent. That is meaningful added meaning, though much of the field-level detail repeats the schema.

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 opening states a specific verb and resource: submit corrective action records across the food safety file and return a verdict on the fix-and-verify trail. It explicitly distinguishes wever_food-inspection-check by saying this tool reads whether deviations were fixed, verified and stayed fixed, while that sibling reads the inspection findings themselves. An agent can select it against that sibling without opening the schema.

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?

It gives clear usage context: reads the fix-and-verify trail across every record type, and points to wever_food-inspection-check for inspection findings. It also states edge cases that affect verification, such as no deviations or open actions with due dates and no reading moment. It does not give a formal when-not-to-use list beyond that sibling distinction.

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