agents.writerslogic.com/api/v1/coa-gate
Checks the values on a certificate of analysis or test report against specification limits clause by clause (up to 200 clauses), for an agent accepting a lot or a supplier's material. Each clause has a parameter, an optional min and max and a unit; each result has a value, an optional reported uncertainty and an optional less-than or greater-than qualifier ("<0.01"). rule simple (default): the rep
POST
https://agents.writerslogic.com/api/v1/coa-gateUptime100% of 3 checks in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agents.writerslogic.com/api/v1/coa-gate", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"rule":"guard-banded","clauses":[{"id":"assay","min":"99.0","unit":"%","parameter":"Assay"},{"id":"pb","max":"0.5","unit":"ppm","parameter":"Lead"},{"id":"water","max":"0.2","unit":"%","parameter":"Water"}],"results":[{"unit":"%","value":"99.4","parameter":"Assay","uncertainty":"0.3"},{"unit":"ppm","value":"0.1","parameter":"Lead","qualifier":"<"}]}),
});
console.log(await res.json());Example input
{
"rule": "guard-banded",
"clauses": [
{
"id": "assay",
"min": "99.0",
"unit": "%",
"parameter": "Assay"
},
{
"id": "pb",
"max": "0.5",
"unit": "ppm",
"parameter": "Lead"
},
{
"id": "water",
"max": "0.2",
"unit": "%",
"parameter": "Water"
}
],
"results": [
{
"unit": "%",
"value": "99.4",
"parameter": "Assay",
"uncertainty": "0.3"
},
{
"unit": "ppm",
"value": "0.1",
"parameter": "Lead",
"qualifier": "<"
}
]
}