# Hermes Agent Commerce API – Quality Gate

> Hermes Agent Commerce API – Quality Gate is a paid API for AI agents from hermes-counterparty-api.onrender.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Validates JSON or CSV data against configurable quality thresholds, returning a pass/fail result with detailed checks on duplicates, missing values, mixed types, and an overall quality score.

## Facts

- Endpoint: POST https://hermes-counterparty-api.onrender.com/v1/quality-gate
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hermes-agent-commerce-api-quality-gate-2158eca6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zIrjHBBSZBLcgxFt9tOzs

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability hermes-agent-commerce-api-quality-gate-2158eca6 -d '<json body>'
```

Example prompt: Run a quality gate on my JSON records and make sure there are zero duplicate rows, no more than 5 missing values, no mixed-type fields, and a minimum quality score of 90 — tell me whether it passes and why if it fails.

## When to prefer this

Choose this endpoint when you need a deterministic, rule-based data quality gate for JSON or CSV data with explicit, configurable thresholds (duplicates, missing values, type consistency, quality score). It is ideal for automated pipelines where a binary pass/fail decision is needed before downstream processing. Prefer it over custom validation scripts when you want a paid, reliable, low-latency API call with a structured JSON response and no infrastructure to maintain.

## Known failure modes

- Data fails minimum_quality_score threshold — pass=false with reason in reasons array
- Too many duplicate rows detected — pass=false
- Excessive missing values — pass=false
- Mixed type fields found when allow_mixed_types=false — pass=false
- Malformed CSV or invalid JSON records submitted — likely 4xx error
- Payment not completed via x402 — 402 Payment Required response

## How this service works

Agent utilities for company research, package maintenance intelligence, dependency vulnerability checks, counterparty availability, SEC company snapshots, OFAC sanctions screening, and deterministic JSON/CSV data-quality work. Company domain intelligence includes a free preview before the paid enrichment call.

## Output

Returns a JSON object with a top-level `pass` boolean, a numeric `quality_score` (0–100), observed dataset statistics (field_count, record_count, duplicate_rows, missing_values, mixed_type_fields), the applied thresholds, a `checks` object with per-rule outcomes, and a `reasons` array listing why the data failed any checks. Schema version 1.0.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "oneOf": [
      {
       "type": "object",
       "required": [
        "format",
        "records"
       ],
       "properties": {
        "format": {
         "type": "string",
         "const": "json"
        },
        "records": {
         "type": "array",
         "items": {
          "type": "object"
         }
        },
        "allow_mixed_types": {
         "type": "boolean"
        },
        "max_duplicate_rows": {
         "type": "integer",
         "minimum": 0
        },
        "max_missing_values": {
         "type": "integer",
         "minimum": 0
        },
        "minimum_quality_score": {
         "type": "number",
         "maximum": 100,
         "minimum": 0
        }
       }
      },
      {
       "type": "object",
       "required": [
        "format",
        "data"
       ],
       "properties": {
        "data": {
         "type": "string"
        },
        "format": {
         "type": "string",
         "const": "csv"
        },
        "allow_mixed_types": {
         "type": "boolean"
        },
        "max_duplicate_rows": {
         "type": "integer",
         "minimum": 0
        },
        "max_missing_values": {
         "type": "integer",
         "minimum": 0
        },
        "minimum_quality_score": {
         "type": "number",
         "maximum": 100,
         "minimum": 0
        }
       }
      }
     ]
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "pass": true,
  "checks": {},
  "reasons": [],
  "observed": {
   "field_count": 1,
   "record_count": 2,
   "duplicate_rows": 0,
   "missing_values": 0,
   "mixed_type_fields": []
  },
  "thresholds": {
   "allow_mixed_types": false,
   "max_duplicate_rows": 0,
   "max_missing_values": 0,
   "minimum_quality_score": 80
  },
  "quality_score": 100,
  "schema_version": "1.0"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hermes-agent-commerce-api-quality-gate-2158eca6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from hermes-counterparty-api.onrender.com](https://www.zero.xyz/host/hermes-counterparty-api.onrender.com/llms.txt)
