{"uid":"cap_TiRw_rU4JAJOXc6Bs-HHc","slug":"writerslogic-coa-gate-certificate-of-analysis-clause-verifier-528d1f74","name":"WritersLogic CoA Gate – Certificate of Analysis Clause Verifier","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/coa-gate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rule":{"enum":["simple","guard-banded"],"type":"string"},"clauses":{"type":"array","items":{"type":"object","required":["id","parameter"],"properties":{"id":{"type":"string","maxLength":80,"minLength":1},"max":{"type":"string","pattern":"^-?\\d{1,15}(\\.\\d{1,12})?$","maxLength":30,"description":"Decimal string such as \"-12.50\" (up to 15 integer and 12 fraction digits). JSON numbers are not accepted: they are binary floats."},"min":{"type":"string","pattern":"^-?\\d{1,15}(\\.\\d{1,12})?$","maxLength":30,"description":"Decimal string such as \"-12.50\" (up to 15 integer and 12 fraction digits). JSON numbers are not accepted: they are binary floats."},"unit":{"type":"string","maxLength":24,"minLength":1},"parameter":{"type":"string","maxLength":120,"minLength":1}},"additionalProperties":false},"maxItems":200,"minItems":1},"results":{"type":"array","items":{"type":"object","required":["parameter","value"],"properties":{"unit":{"type":"string","maxLength":24,"minLength":1},"value":{"type":"string","pattern":"^-?\\d{1,15}(\\.\\d{1,12})?$","maxLength":30,"description":"Decimal string such as \"-12.50\" (up to 15 integer and 12 fraction digits). JSON numbers are not accepted: they are binary floats."},"parameter":{"type":"string","maxLength":120,"minLength":1},"qualifier":{"enum":["<",">"],"type":"string","description":"Censored result: the true value is below / above `value`."},"uncertainty":{"type":"string","pattern":"^-?\\d{1,15}(\\.\\d{1,12})?$","maxLength":30,"description":"Expanded uncertainty U (absolute, same unit as value) so the interval is value +/- U."}},"additionalProperties":false},"maxItems":400},"conversions":{"type":"array","items":{"type":"object","required":["from","to","factor"],"properties":{"to":{"type":"string","maxLength":24,"minLength":1},"from":{"type":"string","maxLength":24,"minLength":1},"factor":{"type":"string","pattern":"^-?\\d{1,15}(\\.\\d{1,12})?$","maxLength":30,"description":"value in `to` = value in `from` x factor."}},"additionalProperties":false},"maxItems":50,"description":"Caller-supplied unit conversions; none are built in."}}},"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_hTzlVXj2UWynUf7GqFwfq","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":"Validates certificate of analysis or test report values clause-by-clause against specification limits, returning pass/fail/indeterminate per clause and an overall lot-acceptance decision.","exampleAgentPrompt":"Check this supplier's CoA against our spec using the guard-banded rule: the spec requires Moisture between 0.1% and 0.5%, Purity minimum 98.0%, and Heavy Metals maximum 0.002%; the CoA reports Moisture 0.3% ± 0.05%, Purity 98.5% ± 0.2%, Heavy Metals <0.001% — does the lot pass?","exampleUseCases":[{"title":"Pharmaceutical raw material lot acceptance","prompt":"Before we release this API batch, check the supplier CoA against our spec using guard-banded rules: Assay must be 98.0–102.0%, Water max 0.5%, Residue on Ignition max 0.1%, pH 5.0–7.0 — the CoA reports Assay 99.1% ± 0.4%, Water 0.3% ± 0.05%, Residue on Ignition 0.08% ± 0.01%, pH 6.2 ± 0.1. Does the lot pass?"},{"title":"Food ingredient specification compliance check","prompt":"Run a simple-rule CoA check on this incoming shipment of citric acid: our spec says Purity ≥99.5%, Arsenic ≤0.0001%, Lead ≤0.0005%, Loss on Drying ≤0.5%. The supplier's test report shows Purity 99.7%, Arsenic <0.00008%, Lead 0.0003%, Loss on Drying 0.4%. Is it acceptable?"},{"title":"Chemical supplier qualification with unit conversion","prompt":"I need to gate-check a new solvent supplier's test report against our spec, but they report viscosity in cP while our spec uses mPa·s — conversion factor is 1. Spec: Viscosity 10–50 mPa·s, Water max 0.05%, Purity min 99.0%. CoA says Viscosity 32 cP, Water 0.03%, Purity 99.5%. Using simple rule, does this lot pass?"}],"resultDescription":"A structured response listing each clause ID with its verdict (pass, fail, or indeterminate), the reason for any indeterminate result (missing result, missing conversion, missing uncertainty, censored value), and an overall disposition for the lot: 'pass' if all clauses pass, 'fail' if any clause fails, or 'unknown' if any clause is indeterminate but none fail.","failureModes":["Clause has no matching result entry — clause is indeterminate, not fail","Result unit differs from clause unit with no conversion supplied — indeterminate","Guard-banded rule selected but uncertainty not reported and not set to 0 — indeterminate","Censored value (< or >) cannot be definitively placed relative to a limit — indeterminate","More than 200 clauses or 400 results submitted — request rejected with validation error","Non-decimal (binary float) JSON numbers in value/min/max fields — schema validation error","Missing required field 'parameter' or 'id' in a clause — schema validation error"],"whenToPreferThis":"Use this endpoint when an AI agent must make or recommend a lot-acceptance decision from a certificate of analysis or test report, especially when exact decimal arithmetic matters, guard-banding on measurement uncertainty is required by the quality system, or unit conversions between supplier and specification must be handled precisely. Prefer over general-purpose LLM reasoning when auditability and deterministic clause-by-clause verdicts are required (e.g. pharma, food, chemicals, aerospace incoming inspection).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T06:38:10.239Z","isFirstParty":false,"canonicalSlug":"writerslogic-coa-gate-certificate-of-analysis-clause-verifier-528d1f74"}